]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: explicitly create new object,snap contexts on push
authorSage Weil <sage@newdream.net>
Fri, 16 Mar 2012 20:07:25 +0000 (13:07 -0700)
committerSage Weil <sage@newdream.net>
Fri, 16 Mar 2012 20:30:51 +0000 (13:30 -0700)
commit15d85af4ce23695fce03505853e435bdb57b5e18
treeaf857edc438e9662114d1f1d4cd8e7ec6385599d
parentd4addf5798fa80d363faa4b2121c528fd4f46a14
osd: explicitly create new object,snap contexts on push

We specifically want to use this during recovery to avoid loading the obc
or ssc for a previous version of the object and populating the watchers.
We know we won't have any existing obc here because it is missing (old or
dne).

For the snapset context, we provide it explicitly when we recover the head
or snapset object (which we always do first).  For clones, we re-use the
existing get_snapset_context(), which will either have the ssc open or
can load it from the head/snapset object.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/ReplicatedPG.cc