]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: fix trim of in-flight hit_sets 1760/head
authorSage Weil <sage@inktank.com>
Fri, 2 May 2014 23:41:26 +0000 (16:41 -0700)
committerSage Weil <sage@inktank.com>
Fri, 2 May 2014 23:41:26 +0000 (16:41 -0700)
commit72fdd557c35cb721d4b502c5a8f68c878f11a19c
tree0f40ec72e9601c6e64c8a64879ab62d3b0d95a53
parent5a6ae2a978dcaf96ef89de3aaa74fe951a64def6
osd/ReplicatedPG: fix trim of in-flight hit_sets

We normally need to stat the hit_set to know how many bytes to adjust the
stats by.  If the hit_set was just written, we will get ENOENT.

Get the obc instead, which will either get the in-memory copy (because the
repop is still in flight) or load it off of disk.

Fixes: #8283
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc