]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/ObjectStore: fix leak ref on Sequencer_impl
authorSage Weil <sage@redhat.com>
Mon, 14 Sep 2015 18:48:11 +0000 (14:48 -0400)
committerSage Weil <sage@redhat.com>
Mon, 14 Sep 2015 20:33:38 +0000 (16:33 -0400)
This should start at 0 refs, not 1.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/ObjectStore.h

index 57c99d540d81f8bab580821580ef1d24a6a2d669..c8a54268c9702b4e8b842aee75ae7d02d7752868 100644 (file)
@@ -155,7 +155,7 @@ public:
       Context *c ///< [in] context to call upon flush/commit
       ) = 0; ///< @return true if idle, false otherwise
 
-    Sequencer_impl() : RefCountedObject(0) {}
+    Sequencer_impl() : RefCountedObject(NULL, 0) {}
     virtual ~Sequencer_impl() {}
   };
   typedef boost::intrusive_ptr<Sequencer_impl> Sequencer_implRef;