]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Call Rados.shutdown() explicitly before exit 3169/head
authorDan Mick <dan.mick@redhat.com>
Wed, 10 Dec 2014 21:19:53 +0000 (13:19 -0800)
committerDan Mick <dan.mick@redhat.com>
Thu, 11 Dec 2014 05:35:14 +0000 (21:35 -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>
(cherry picked from commit b038e8fbf9103cc42a4cde734b3ee601af6019ea)

src/ceph.in

index 82c90859bf30e4e3fd5fada9b2d7ccc421bf2a9f..c5b97ef32408347c0c6a8fac205bc5a73b677d53 100755 (executable)
@@ -841,4 +841,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)