summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd_test.cpp
diff options
context:
space:
mode:
authorAkilesh Kailash <akailash@google.com>2021-05-10 08:05:11 +0000
committerAkilesh Kailash <akailash@google.com>2021-05-10 08:32:06 +0000
commit9ea1acb8479fc693aabf1808716b74d80124ad07 (patch)
tree1f19e16d7d15506a97bb299cc86d42efc3121648 /debuggerd/debuggerd_test.cpp
parent57b9a5370e7fa5a3f3007a0287f840baa7f3fc6a (diff)
snapuserd: Fix merging of overlapping copy blocks
As part of r.android.com/c/1678745/7, overlapping copy operations was allowed to batch merge which is not right. The intention of that CL was to avoid un-necessary write traffic involved in flushing data to scratch space. However, as part of the optimization, copy operations were merged. More specifically, the problem comes into play when the number of overlapping copy operations is more than the read-ahead window size (2MB). I have added a new test case to test this specific code path to avoid future regressions. Additionally, remove un-necessary "send()" as part of "detach" response from snapuserd server. Client is not waiting for any response. It just creates a race window which is harmless but error log will be misleading. Bug: 187506548 Test: cow_snapuserd which tests the similar configuration as seen in the COW file in the bug report. Signed-off-by: Akilesh Kailash <akailash@google.com> Change-Id: Ic0f1ddd390f79966aabfbeadb7d64bc5bb86e83b
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
0 files changed, 0 insertions, 0 deletions