]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Tue, 4 Jun 2024 19:44:25 +0000 (15:44 -0400)
Existing convention is that "css" is short for CachedStackStringStream while
"ss" is stringstream.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDSRank.cc

index a8f6f861086c77d27554efc643e85ca3cc6f3acb..083edc7120e9c584754548b92ff1e677cbc97323 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();