]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
monclient: fix else formatting
authorJosh Durgin <josh.durgin@dreamhost.com>
Tue, 1 Nov 2011 17:43:50 +0000 (10:43 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Tue, 1 Nov 2011 17:46:11 +0000 (10:46 -0700)
If one branch has braces, the other should too.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/mon/MonClient.cc

index 26047491ba8583e55b2c2f9b57d9ae9a9bbefa17..214bfd6080cbdc7ad4ac93549a0c0afb8c955bb3 100644 (file)
@@ -421,8 +421,9 @@ int MonClient::authenticate(double timeout)
        ldout(cct, 0) << "authenticate timed out after " << timeout << dendl;
        authenticate_err = -r;
       }
-    } else
+    } else {
       auth_cond.Wait(monc_lock);
+    }
   }
 
   if (state == MC_STATE_HAVE_SESSION) {