]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmon: always send in the CRUSH rule.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 2 Aug 2011 20:11:31 +0000 (13:11 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 4 Aug 2011 15:39:08 +0000 (08:39 -0700)
Not sure why this wasn't there before...looks like the CRUSH option
is newer than the code and it didn't all get updated.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mon/OSDMonitor.cc

index 848e5caa1a1fc5ba31fdfc15fe9344c696008bd3..fa7141cf0fc7337f3c8a1a70c2e1a0c057718f41 100644 (file)
@@ -1343,7 +1343,7 @@ int OSDMonitor::prepare_new_pool(MPoolOp *m)
   if (!session)
     return -EPERM;
   if (m->auid)
-    return prepare_new_pool(m->name, m->auid);
+    return prepare_new_pool(m->name, m->auid, m->crush_rule);
   else
     return prepare_new_pool(m->name, session->caps.auid, m->crush_rule);
 }