]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: behave if errcb is NULL
authorSage Weil <sage@redhat.com>
Sat, 8 Nov 2014 01:04:37 +0000 (17:04 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:32:38 +0000 (10:32 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/librados/librados.cc

index 4b648ed394b4f65e9d6df537c1f39b8e6253557e..b86b008f35474e0213b824854111690cb1d06f8f 100644 (file)
@@ -3783,7 +3783,8 @@ struct C_WatchCB2 : public librados::WatchCtx2 {
     wcb(arg, notify_id, cookie, notifier_gid, bl.c_str(), bl.length());
   }
   void handle_error(uint64_t cookie, int err) {
-    errcb(arg, cookie, err);
+    if (errcb)
+      errcb(arg, cookie, err);
   }
 };