]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: stop holding PG ref until on_applied on PG removal
authorSage Weil <sage@redhat.com>
Sat, 27 Jan 2018 21:07:14 +0000 (15:07 -0600)
committerSage Weil <sage@redhat.com>
Mon, 12 Feb 2018 20:35:27 +0000 (14:35 -0600)
Not necessary--the backend should manage the lifecycle.  We just own
one ref anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc

index 80398e4809ae08fcf7b3bf8dd17d675aaf9007fe..d8e2804544ba49b2571eeacdc6f1f2e17a43f6b3 100644 (file)
@@ -6283,7 +6283,6 @@ void PG::_delete_some()
     PGRef pgref(this);
     // keep pg ref around until txn completes to avoid any issues
     // with Sequencer lifecycle (seen w/ filestore).
-    t.register_on_applied(new ContainerContext<PGRef>(pgref));
     t.register_on_commit(new ContainerContext<PGRef>(pgref));
     t.register_on_applied(new ContainerContext<PGRef>(pgref));
     int r = osd->store->queue_transaction(