]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: make find_object_context() pass missing_oid
authorSage Weil <sage@inktank.com>
Tue, 24 Dec 2013 01:25:07 +0000 (17:25 -0800)
committerSage Weil <sage@inktank.com>
Tue, 14 Jan 2014 00:19:39 +0000 (16:19 -0800)
commitc3c1541c73c1856ef107f2bcdca679e58ed9c587
tree99f330f1ea9cf8d380564f8acc4ede1eefbccdea
parent196e3d62780554e5e21994d2cee0af9a7c873f07
osd/ReplicatedPG: make find_object_context() pass missing_oid

Prevoiusly we would return a snapid that we are blocked on if it is
missing.  This is necessary because the missing clone does not always
match the logical snap we are trying to read.

Extend this to return a full hobject_t that is the missing object we want.
For the missing clone case, this cleans things up slightly.  More
importantly, it lets find_object_context also tell us which on-disk
object is missing that, if it could be promoted, would help.

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