]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-conf: flush log on exit 2193/head
authorSage Weil <sage@redhat.com>
Mon, 4 Aug 2014 04:00:37 +0000 (21:00 -0700)
committerSage Weil <sage@redhat.com>
Mon, 4 Aug 2014 04:00:51 +0000 (21:00 -0700)
This makes it deterministic whether we output

2014-08-03 20:59:45.482614 4036c80 -1 did not load config file, using default settings.

or not, and will make the unit tests stop intermittently failing.

Signed-off-by: Sage Weil <sage@redhat.com>
src/tools/ceph_conf.cc

index dac734b03121779912d6efffa248a43ebe5221ab..30e40ab9a91da23efb06bfe96a71fc9f6abb7a8e 100644 (file)
@@ -206,6 +206,7 @@ int main(int argc, const char **argv)
     }
   }
 
+  g_ceph_context->_log->flush();
   if (action == "help") {
     usage();
     exit(0);