]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: That unlock's not in the right spot
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 10 Dec 2009 03:30:22 +0000 (19:30 -0800)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 10 Dec 2009 22:33:32 +0000 (14:33 -0800)
src/msg/SimpleMessenger.h

index 59cb6e9c875f542aec092f230d11437f822a10c4..051e62af3a0fc964e52c876683323a378135c261 100644 (file)
@@ -364,8 +364,8 @@ private:
     }
     void queue_reset(Connection *con) {
       endpoint_lock.Lock();
-      endpoint_lock.Unlock();
       reset_q.push_back(con);
+      endpoint_lock.Unlock();
       local_delivery((Message*)D_BAD_RESET, CEPH_MSG_PRIO_HIGHEST);
     }