]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: flush log on failure injection
authorSage Weil <sage.weil@dreamhost.com>
Sat, 14 Apr 2012 00:21:12 +0000 (17:21 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 14 Apr 2012 03:41:35 +0000 (20:41 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/os/FileStore.cc

index a1c4271bbea0ee7e83ba16f8c1dfa3edf012f953..cf8886cf29a5a012450032adf90981a8030c751e 100644 (file)
@@ -4575,6 +4575,7 @@ void FileStore::_inject_failure()
     dout(5) << "_inject_failure " << (final+1) << " -> " << final << dendl;
     if (final == 0) {
       derr << "_inject_failure KILLING" << dendl;
+      g_ceph_context->_log->flush();
       _exit(1);
     }
   }