]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: Removed the redundant register_snapset_context call 2062/head
authorSomnath Roy <somnath.roy@sandisk.com>
Wed, 2 Jul 2014 18:20:29 +0000 (11:20 -0700)
committerSomnath Roy <somnath.roy@sandisk.com>
Wed, 2 Jul 2014 18:20:29 +0000 (11:20 -0700)
In the get_object_context(), the get_snapset_context is been called
and the register_snapset_context is already been invoked from there.
This call seems to be redundant.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
src/osd/ReplicatedPG.cc

index bad48726029fa8809ee26a490bf7985ecd5294b8..ac715c646fd01eedcaa26ba400f62732a9a0c32a 100644 (file)
@@ -7111,7 +7111,6 @@ ObjectContextRef ReplicatedPG::get_object_context(const hobject_t& soid,
     obc->ssc = get_snapset_context(
       soid, true,
       soid.has_snapset() ? attrs : 0);
-    register_snapset_context(obc->ssc);
 
     populate_obc_watchers(obc);