]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/simple: fix missing unlock when already bind
authorHaomai Wang <haomai@xsky.com>
Mon, 6 Feb 2017 06:36:21 +0000 (14:36 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 6 Feb 2017 06:36:21 +0000 (14:36 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/simple/SimpleMessenger.cc

index aed27ac1b4e7419a47249a5d7c99b3fc58bf5a0b..8897f2287bc1af1c4201c03b10ca3b8652bdbfb6 100644 (file)
@@ -312,6 +312,7 @@ int SimpleMessenger::client_bind(const entity_addr_t &bind_addr)
   lock.Lock();
   if (did_bind) {
     assert(my_inst.addr == bind_addr);
+    lock.Unlock();
     return 0;
   }
   if (started) {