]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonDBStore: fix assert which never fires 10706/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 12 Aug 2016 01:56:54 +0000 (09:56 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 12 Aug 2016 01:56:54 +0000 (09:56 +0800)
The condition is always true and thus the assert never fires,
which is obvious not our plan.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/MonitorDBStore.h

index fbf9c2f6b6b9d653f0eb37c19eb318f09de25acd..0acbfbe36e2550a6d6ffa27e58a304dca07d8340 100644 (file)
@@ -597,7 +597,7 @@ class MonitorDBStore
       derr << __func__ << " error initializing "
           << kv_type << " db back storage in "
           << full_path << dendl;
-      assert(0 != "MonitorDBStore: error initializing keyvaluedb back storage");
+      assert(0 == "MonitorDBStore: error initializing keyvaluedb back storage");
     }
     db.reset(db_ptr);