]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix set_state_rejoin auth_pin check
authorSage Weil <sage@newdream.net>
Tue, 23 Nov 2010 18:08:18 +0000 (10:08 -0800)
committerSage Weil <sage@newdream.net>
Tue, 23 Nov 2010 21:59:09 +0000 (13:59 -0800)
We carry an auth pin IFF !stable AND auth.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/SimpleLock.h

index 2f6ba781354a5628a37c7db3477a243d3316c812..0ffa32503d03277d33e5ae018a872b80b370aceb 100644 (file)
@@ -315,7 +315,7 @@ public:
     return s;
   }
   void set_state_rejoin(int s, list<Context*>& waiters) {
-    if (!is_stable()) {
+    if (!is_stable() && get_parent()->is_auth()) {
       state = s;
       get_parent()->auth_unpin(this);
     } else {