]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Call Rados.shutdown() explicitly before exit 3119/head
authorDan Mick <dan.mick@redhat.com>
Wed, 10 Dec 2014 21:19:53 +0000 (13:19 -0800)
committerDan Mick <dan.mick@redhat.com>
Wed, 10 Dec 2014 23:09:32 +0000 (15:09 -0800)
This is mostly a demonstration of good behavior, as the resources will
be reclaimed on exit anyway.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/ceph.in

index 654148fba391ff2e094f4bfe54d6cfccc32f8e0f..b419a280a9550cce199d31ec9efca6ac7b8eb5c2 100755 (executable)
@@ -877,4 +877,8 @@ def main():
     return 0
 
 if __name__ == '__main__':
-    sys.exit(main())
+    retval = main()
+    # shutdown explicitly; Rados() does not
+    if cluster_handle:
+        cluster_handle.shutdown()
+    sys.exit(retval)