Skip to content

Commit

Permalink
ReplicatedPG: Removed the redundant register_snapset_context call
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Somnath Roy committed Jul 2, 2014
1 parent 94e1b77 commit 0392ddb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/osd/ReplicatedPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0392ddb

Please sign in to comment.