]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix segmentation fault when handler is NULL pointer 969/head
authorHaomai Wang <haomaiwang@gmail.com>
Thu, 19 Dec 2013 10:54:04 +0000 (18:54 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Thu, 19 Dec 2013 10:54:04 +0000 (18:54 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/os/MemStore.cc

index e448a2ff383d6a19ff4daca42487161872881581..d6e70fda7603062078fbe4f94cc3d88789ca477c 100644 (file)
@@ -648,7 +648,9 @@ int MemStore::queue_transactions(Sequencer *osr,
 
   for (list<Transaction*>::iterator p = tls.begin(); p != tls.end(); ++p) {
     // poke the TPHandle heartbeat just to exercise that code path
-    handle->reset_tp_timeout();
+    if (handle)
+      handle->reset_tp_timeout();
+
     _do_transaction(**p);
   }