]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: do not include = in pool properties values
authorLoic Dachary <loic@dachary.org>
Sat, 21 Dec 2013 13:52:17 +0000 (14:52 +0100)
committerLoic Dachary <loic@dachary.org>
Sun, 22 Dec 2013 22:43:54 +0000 (23:43 +0100)
foo=bar was parsed as {"foo":"=bar"} instead of {"foo":"bar"} because of
the missing equal++

Signed-off-by: Loic Dachary <loic@dachary.org>
src/mon/OSDMonitor.cc

index 0dc36f7c8ae1833fad3c5620535562c426e6ddcb..2366d78236cecb5dddadc2a9fbb5bb1f46363968 100644 (file)
@@ -2783,6 +2783,7 @@ int OSDMonitor::prepare_new_pool(string& name, uint64_t auid, int crush_rule,
       pi->properties[*i] = string();
     else {
       const string key = i->substr(0, equal);
+      equal++;
       const string value = i->substr(equal);
       pi->properties[key] = value;
     }