]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_test_rados: fix COPY_FROM completion 614/head
authorSage Weil <sage@inktank.com>
Sat, 21 Sep 2013 04:06:09 +0000 (21:06 -0700)
committerSage Weil <sage@inktank.com>
Sat, 21 Sep 2013 04:06:09 +0000 (21:06 -0700)
commit2b75abbd850e6988539d79c3ab564e50c09c3812
tree4ec180154f38d72f493e9c4c61f0798b0846ad65
parent935eb22833f1e9e659bbec2350a4fcbc88bdcc9d
ceph_test_rados: fix COPY_FROM completion

Fix the copy_from operation to not remove the objects from the in_use list
until after the entire operation is complete.  In particular, the racing
read was completing and removing the dest oid from the in-use list before
the copy-from completed.  This keeps the model in sync with what the OSD
is actually doing.

If another new read started up, it would grab the previous value from the
model and expect to see that, but would instead see the updated value.

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/osd/RadosModel.h