]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatePG: correctly checking if an object is in hit set 3976/head
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 12 Mar 2015 08:15:45 +0000 (16:15 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 12 Mar 2015 08:15:45 +0000 (16:15 +0800)
commitd8bf378314b012724116e01d23acac09d8bd47ca
tree85fbda784349b1abadf9607ff8cb42e1d0275c0b
parent64d9e05d420a04914c59c233b450e3c7a31c9e34
osd/ReplicatePG: correctly checking if an object is in hit set

For the write case when the oid.snap is CEPH_NOSNAP, the obc is created
in find_object_context, and missing_oid is setting to a NULL object.
Checking if the missing_oid is in the hit set is not the correct way
since it's NULL. Instead, we should check the obc->obs.oi.soid.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/osd/ReplicatedPG.cc