From a6618f225cf19a84b5ed2f96d9af88a12d3b59dd Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 16 Dec 2025 13:40:42 +0300 Subject: [PATCH] object_storage_endpoint_param: Make it formattable for real Currently the formatter converts it to json and then tries to emit into the output context with the "...{{}}" format string. The intent was to have the "...{}" output. However, the double curly brace in format string means "print a curly brace", so the output of the above formatting is "...{}", literally. Fix by keeping a single curly brace. The "" thing will have its own surrounding curly braces. Fixes #27718 Signed-off-by: Pavel Emelyanov Closes scylladb/scylladb#27687 --- db/object_storage_endpoint_param.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/object_storage_endpoint_param.cc b/db/object_storage_endpoint_param.cc index 4659c7695a..683a217768 100644 --- a/db/object_storage_endpoint_param.cc +++ b/db/object_storage_endpoint_param.cc @@ -135,5 +135,5 @@ const std::string db::object_storage_endpoint_param::gs_type = "gs"; auto fmt::formatter::format(const db::object_storage_endpoint_param& e, fmt::format_context& ctx) const -> decltype(ctx.out()) { - return fmt::format_to(ctx.out(), "object_storage_endpoint_param{{}}", e.to_json_string()); + return fmt::format_to(ctx.out(), "object_storage_endpoint_param{}", e.to_json_string()); }