From: Sage Weil Date: Thu, 15 Aug 2013 21:07:39 +0000 (-0700) Subject: Revert "config: fix stringification of config values" X-Git-Tag: v0.68~66^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ba4dc31cba38750762daa7fa5a08045d87b0517;p=ceph.git Revert "config: fix stringification of config values" This reverts commit fefe0c602f78e66d35fd5806da4c2e4e154a267c. I have a cleaner cleanup. --- diff --git a/src/common/ceph_context.cc b/src/common/ceph_context.cc index fcc3798c47a3..9602fdf2e40d 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);