From b6585573ee1fc77aab806c1da83dbbfeaf9a51a3 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Fri, 12 Aug 2016 09:56:54 +0800 Subject: [PATCH] mon/MonDBStore: fix assert which never fires The condition is always true and thus the assert never fires, which is obvious not our plan. Signed-off-by: xie xingguo --- src/mon/MonitorDBStore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/MonitorDBStore.h b/src/mon/MonitorDBStore.h index fbf9c2f6b6b9..0acbfbe36e25 100644 --- a/src/mon/MonitorDBStore.h +++ b/src/mon/MonitorDBStore.h @@ -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); -- 2.47.3