From: Patrick Donnelly Date: Thu, 23 May 2024 19:57:30 +0000 (-0400) Subject: mds: use appropriate abbrev. for variable name X-Git-Tag: v19.1.1~116^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5bbe1c7a8c4dca6d06a3d1e2e1b1135bc40d1598;p=ceph.git mds: use appropriate abbrev. for variable name Existing convention is that "css" is short for CachedStackStringStream while "ss" is stringstream. Signed-off-by: Patrick Donnelly (cherry picked from commit 4229c278dd93e77bf56667c3713b7385c1fb20d4) --- diff --git a/src/mds/MDSRank.cc b/src/mds/MDSRank.cc index 168865d215f0..96f04ab8e9c7 100644 --- a/src/mds/MDSRank.cc +++ b/src/mds/MDSRank.cc @@ -2661,16 +2661,15 @@ void MDSRankDispatcher::handle_asok_command( struct AsyncResponse : Context { Formatter* f; decltype(on_finish) do_respond; - std::basic_ostringstream css; + std::basic_ostringstream ss; AsyncResponse(Formatter* f, decltype(on_finish)&& respond_action) : f(f), do_respond(std::forward(respond_action)) {} void finish(int rc) override { f->open_object_section("result"); - if (!css.view().empty()) { - f->dump_string("message", css.view()); - } + if (!ss.view().empty()) { + f->dump_string("message", ss.view()); f->dump_int("return_code", rc); f->close_section(); @@ -2964,7 +2963,7 @@ void MDSRankDispatcher::handle_asok_command( return; } else if (command == "flush journal") { auto respond = new AsyncResponse(f, std::move(on_finish)); - C_Flush_Journal* flush_journal = new C_Flush_Journal(mdcache, mdlog, this, &respond->css, respond); + C_Flush_Journal* flush_journal = new C_Flush_Journal(mdcache, mdlog, this, &respond->ss, respond); std::lock_guard locker(mds_lock); flush_journal->send();