This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new eb250d0c Fix unescaped characters in configuration rewriting (#1880)
eb250d0c is described below

commit eb250d0ce2c0b427b6a08074dfdc3f24f563c02b
Author: Twice <[email protected]>
AuthorDate: Mon Nov 6 20:15:50 2023 +0900

    Fix unescaped characters in configuration rewriting (#1880)
    
    Co-authored-by: hulk <[email protected]>
---
 src/config/config.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/config.cc b/src/config/config.cc
index d576c5b1..1c782193 100644
--- a/src/config/config.cc
+++ b/src/config/config.cc
@@ -913,7 +913,7 @@ Status Config::Rewrite(const std::map<std::string, 
std::string> &tokens) {
   }
   for (const auto &remain : new_config) {
     if (remain.second.empty()) continue;
-    fmt::format_to(std::back_inserter(out_buf), "{} {}\n", remain.first, 
remain.second);
+    fmt::format_to(std::back_inserter(out_buf), "{}\n", 
DumpConfigLine({remain.first, remain.second}));
   }
   std::string tmp_path = path_ + ".tmp";
   remove(tmp_path.data());

Reply via email to