From 2d01da63dfa890f01dda16c0375fc52d2d71c138 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sat, 21 Dec 2013 14:52:17 +0100 Subject: [PATCH] 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 --- src/mon/OSDMonitor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 0dc36f7c8ae..2366d78236c 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; } -- 2.47.3