summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-02-24 18:37:02 +0100
committerGitHub <noreply@github.com>2022-02-24 18:37:02 +0100
commit76d074a593d2fc98a4a459ed1665b2849121f12e (patch)
treeaceaca6f4e3b590f43facda5e6462a11263771fc /searchcore
parent435f2c992bc7338abdc759320ffeed0118e4bbb0 (diff)
parent109c1fbd96f3947dc1829695bfedc108496e647e (diff)
Merge pull request #21378 from vespa-engine/toregge/avoid-warning-when-compiling-with-thread-sanitizer
Avoid compiler warning when using thread sanitizer on CentOS Stream 8.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp b/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp
index 9d0e7b5dbc0..a2817601c55 100644
--- a/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp
@@ -15,6 +15,8 @@ using vespalib::compression::CompressionConfig;
namespace {
+string delayed_configs_string("delayedConfigs");
+
using Pair = std::pair<string, string>;
}
@@ -36,7 +38,7 @@ RPCHooksBase::reportState(FRT_RPCRequest * req)
res.emplace_back("onlineState", "onlineSoon");
}
- res.emplace_back("delayedConfigs", delayedConfigs);
+ res.emplace_back(delayed_configs_string, delayedConfigs);
res.emplace_back("onlineDocs", make_string("%" PRId64, numDocs));
FRT_Values &ret = *req->GetReturn();