]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: error out on authentication failure
authorSage Weil <sage@newdream.net>
Sat, 6 Feb 2010 19:18:51 +0000 (11:18 -0800)
committerSage Weil <sage@newdream.net>
Sat, 6 Feb 2010 19:29:09 +0000 (11:29 -0800)
asdf

src/ceph.cc

index 7e795452deabc2680de2fef68a8b31fcbff5475b..df685da2fcb853ed59f6dab323c0efcbfbf8c1eb 100644 (file)
@@ -635,8 +635,10 @@ int main(int argc, const char **argv, const char *envp[])
   mc.set_messenger(messenger);
   mc.init();
 
-  if (mc.get_monmap() < 0)
+  if (mc.authenticate() < 0) {
+    cerr << "unable to authenticate as " << *g_conf.entity_name << std::endl;
     return -1;
+  }
 
   if (watch) {
     lock.Lock();