From: Loic Dachary Date: Sat, 21 Dec 2013 13:52:17 +0000 (+0100) Subject: mon: do not include = in pool properties values X-Git-Tag: v0.75~48^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2d01da63dfa890f01dda16c0375fc52d2d71c138;p=ceph.git mon: do not include = in pool properties values foo=bar was parsed as {"foo":"=bar"} instead of {"foo":"bar"} because of the missing equal++ Signed-off-by: Loic Dachary --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 0dc36f7c8ae1..2366d78236ce 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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; }