]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: use appropriate abbrev. for variable name
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 23 May 2024 19:57:30 +0000 (15:57 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 27 Jun 2024 16:25:12 +0000 (12:25 -0400)
Existing convention is that "css" is short for CachedStackStringStream while
"ss" is stringstream.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 4229c278dd93e77bf56667c3713b7385c1fb20d4)

src/mds/MDSRank.cc

index 168865d215f050a5a8b6631db624e5deba7b173c..96f04ab8e9c710d83dd016d551295baf163259eb 100644 (file)
@@ -2661,16 +2661,15 @@ void MDSRankDispatcher::handle_asok_command(
   struct AsyncResponse : Context {
     Formatter* f;
     decltype(on_finish) do_respond;
-    std::basic_ostringstream<char> css;
+    std::basic_ostringstream<char> ss;
 
     AsyncResponse(Formatter* f, decltype(on_finish)&& respond_action)
       : f(f), do_respond(std::forward<decltype(on_finish)>(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();