From: Somnath Roy Date: Wed, 2 Jul 2014 18:20:29 +0000 (-0700) Subject: ReplicatedPG: Removed the redundant register_snapset_context call X-Git-Tag: v0.84~152^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2062%2Fhead;p=ceph.git ReplicatedPG: Removed the redundant register_snapset_context call 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 --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index bad48726029..ac715c646fd 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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);