From: Sage Weil Date: Tue, 3 May 2016 12:50:43 +0000 (-0400) Subject: mon/MonitorDBStore: fix bug in dump output file X-Git-Tag: v11.0.0~678 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=be6279de2e9df5828673efaba9a57e7aff680430;p=ceph.git mon/MonitorDBStore: fix bug in dump output file Signed-off-by: Sage Weil --- diff --git a/src/mon/MonitorDBStore.h b/src/mon/MonitorDBStore.h index cbb0b33ed9b7..a935d1f9aede 100644 --- a/src/mon/MonitorDBStore.h +++ b/src/mon/MonitorDBStore.h @@ -654,7 +654,7 @@ class MonitorDBStore dump_fd_binary = ::open( g_conf->mon_debug_dump_location.c_str(), O_CREAT|O_APPEND|O_WRONLY, 0644); - if (!dump_fd_binary) { + if (dump_fd_binary < 0) { dump_fd_binary = -errno; derr << "Could not open log file, got " << cpp_strerror(dump_fd_binary) << dendl;