From 3ba4dc31cba38750762daa7fa5a08045d87b0517 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 15 Aug 2013 14:07:39 -0700 Subject: [PATCH] Revert "config: fix stringification of config values" This reverts commit fefe0c602f78e66d35fd5806da4c2e4e154a267c. I have a cleaner cleanup. --- src/common/ceph_context.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/ceph_context.cc b/src/common/ceph_context.cc index fcc3798c47a..9602fdf2e40 100644 --- a/src/common/ceph_context.cc +++ b/src/common/ceph_context.cc @@ -198,10 +198,7 @@ void CephContext::do_command(std::string command, cmdmap_t& cmdmap, } else { // val may be multiple words ostringstream argss; - argss << *val.begin(); - for (std::vector::iterator i = val.begin() + 1; i != val.end(); ++i) { - argss << "," << *i; - } + std::copy(val.begin(), val.end(), ostream_iterator(argss, " ")); int r = _conf->set_val(var.c_str(), argss.str().c_str()); if (r < 0) { f->dump_stream("error") << "error setting '" << var << "' to '" << val << "': " << cpp_strerror(r); -- 2.47.3