]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/BaseMgrModule: fix leak
authorSage Weil <sage@redhat.com>
Thu, 18 Apr 2019 18:28:05 +0000 (13:28 -0500)
committerSage Weil <sage@redhat.com>
Fri, 19 Apr 2019 14:09:36 +0000 (09:09 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/BaseMgrModule.cc

index 1cdb0f09a817e1e30c434458a23e4b5cc2c90866..ab252daa89ea8f037f5c4fc43e0e115c29fbf47d 100644 (file)
@@ -154,7 +154,7 @@ ceph_send_command(BaseMgrModule *self, PyObject *args)
     auto c = new FunctionContext([command_c, self](int command_r){
       self->py_modules->get_objecter().wait_for_latest_osdmap(
           new FunctionContext([command_c, command_r](int wait_r){
-            command_c->finish(command_r);
+            command_c->complete(command_r);
           })
       );
     });