singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wan...@apache.org
Subject incubator-singa git commit: ensure the callback function used in ZKClusterRT.sWatchGroup cannot be NULL
Date Wed, 10 Jun 2015 06:53:16 GMT
Repository: incubator-singa
Updated Branches:
  refs/heads/master 6bcaaaa4d -> 56fe4b85b


ensure the callback function used in ZKClusterRT.sWatchGroup cannot be NULL


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/56fe4b85
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/56fe4b85
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/56fe4b85

Branch: refs/heads/master
Commit: 56fe4b85babca51dccc18ea9408efa0ea057a34b
Parents: 6bcaaaa
Author: wang sheng <wangsheng1001@gmail.com>
Authored: Wed Jun 10 14:47:41 2015 +0800
Committer: wang sheng <wangsheng1001@gmail.com>
Committed: Wed Jun 10 14:47:41 2015 +0800

----------------------------------------------------------------------
 src/utils/cluster_rt.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/56fe4b85/src/utils/cluster_rt.cc
----------------------------------------------------------------------
diff --git a/src/utils/cluster_rt.cc b/src/utils/cluster_rt.cc
index b60b334..af6fbbc 100644
--- a/src/utils/cluster_rt.cc
+++ b/src/utils/cluster_rt.cc
@@ -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;
 


Mime
View raw message