]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: set auid for mon-created pools to 0
authorSage Weil <sage@newdream.net>
Fri, 20 Apr 2012 19:53:41 +0000 (12:53 -0700)
committerSage Weil <sage@newdream.net>
Mon, 23 Apr 2012 21:48:02 +0000 (14:48 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/OSDMonitor.cc

index d5fc530169420db88d6964eb6c040356fe4cfc5f..be34c762cc4cb54e88c5fe3fa71bf63f7332906b 100644 (file)
@@ -1988,9 +1988,9 @@ bool OSDMonitor::prepare_command(MMonCommand *m)
             }
           }
         }
-        err = prepare_new_pool(m->cmd[3], CEPH_AUTH_UID_DEFAULT,
-                               -1, pg_num, pgp_num);
-        // that's the default auid owner (ie, none) and the default crush rule
+        err = prepare_new_pool(m->cmd[3], 0,  // auid=0 for admin created pool
+                              -1,            // default crush rule
+                              pg_num, pgp_num);
         if (err < 0) {
           if (err == -EEXIST)
             ss << "pool '" << m->cmd[3] << "' exists";