From fe91c06cd3b03147c152f83ba41737d0e594a6b6 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 28 Feb 2008 11:32:32 -0800 Subject: [PATCH] mon: oops --- src/mon/MDSMonitor.cc | 2 +- src/mon/OSDMonitor.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 4fdf2fc4e8905..ee684eb3d41da 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -486,7 +486,7 @@ bool MDSMonitor::preprocess_command(MMonCommand *m) if (r != -1) { string rs; - ss >> rs; + getline(ss, rs); MMonCommandAck *reply = new MMonCommandAck(r, rs); reply->set_data(rdata); mon->messenger->send_message(reply, m->inst); diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index e1cb248385fac..74aec7f1ad0f7 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -887,7 +887,7 @@ bool OSDMonitor::preprocess_command(MMonCommand *m) } if (r != -1) { string rs; - ss >> rs; + getline(ss, rs); MMonCommandAck *reply = new MMonCommandAck(r, rs); reply->set_data(rdata); mon->messenger->send_message(reply, m->inst); -- 2.39.5