Skip to content

Commit

Permalink
Bugfix of check pending node
Browse files Browse the repository at this point in the history
  • Loading branch information
gaodunqiao committed Apr 7, 2017
1 parent d7b14d8 commit b25432c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/qconf_watcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b25432c

Please sign in to comment.