]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD,PG::scrub() move pg->put() into queue process
authorSamuel Just <sam.just@inktank.com>
Tue, 3 Jul 2012 20:58:56 +0000 (13:58 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 5 Jul 2012 17:14:57 +0000 (10:14 -0700)
This clarifies ownership of the pg reference.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.h

index 1c3df1819c4ca74b318ff742319e2f7993e091c7..e1170292828b63d8b7c0e7b92bcb6f907fd982de 100644 (file)
@@ -880,6 +880,7 @@ protected:
     }
     void _process(PG *pg) {
       pg->scrub();
+      pg->put();
     }
     void _clear() {
       while (!osd->scrub_queue.empty()) {