Skip to content

Commit

Permalink
ensure the callback function used in ZKClusterRT.sWatchGroup cannot b…
Browse files Browse the repository at this point in the history
…e NULL
  • Loading branch information
wangsheng1001 committed Jun 10, 2015
1 parent 6bcaaaa commit 56fe4b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/cluster_rt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ bool ZKClusterRT::Init(){

bool ZKClusterRT::sWatchSGroup(int gid, int sid, rt_callback fn, void *ctx){

CHECK_NOTNULL(fn);

string path = getSGroupPath(gid);
struct Stat stat;

Expand Down

0 comments on commit 56fe4b8

Please sign in to comment.