From b25432cad140ae23ce8167ad477b0aeb646348a1 Mon Sep 17 00:00:00 2001 From: gaodunqiao Date: Fri, 7 Apr 2017 18:52:30 +0800 Subject: [PATCH] Bugfix of check pending node --- agent/qconf_watcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/qconf_watcher.cc b/agent/qconf_watcher.cc index f9a1ae8..71847cf 100644 --- a/agent/qconf_watcher.cc +++ b/agent/qconf_watcher.cc @@ -382,7 +382,7 @@ static void del_pending_node(const string& tblkey) static bool pending_node_exist(const string& tblkey) { _pending_nodes_mutex.Lock(); - int exist = (_pending_nodes.find(tblkey) == _pending_nodes.end()); + bool exist = (_pending_nodes.find(tblkey) != _pending_nodes.end()); _pending_nodes_mutex.Unlock(); return exist; }