From 4229c278dd93e77bf56667c3713b7385c1fb20d4 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 23 May 2024 15:57:30 -0400 Subject: [PATCH] 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 --- src/mds/MDSRank.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mds/MDSRank.cc b/src/mds/MDSRank.cc index a8f6f861086..083edc7120e 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(); -- 2.39.5