summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2021-03-18 11:31:26 +0100
committerTor Egge <Tor.Egge@broadpark.no>2021-03-18 11:32:14 +0100
commitf3a4f89d5a2e50ca7bb0908fbf9e5a1af053b8c0 (patch)
tree4181b3f2e95b1d6136b914c746b511abd59e8581 /storage
parent737c41159e2491fee04966135bc15ea59b1bfbd6 (diff)
Abandon gcc 8 support.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/distributor/externaloperationhandler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/storage/src/vespa/storage/distributor/externaloperationhandler.cpp b/storage/src/vespa/storage/distributor/externaloperationhandler.cpp
index ebca3574eac..81201ff5469 100644
--- a/storage/src/vespa/storage/distributor/externaloperationhandler.cpp
+++ b/storage/src/vespa/storage/distributor/externaloperationhandler.cpp
@@ -274,9 +274,7 @@ namespace {
bool put_is_from_reindexing_visitor(const api::PutCommand& cmd) {
const auto& tas_cond = cmd.getCondition();
- const char* prefix = reindexing_bucket_lock_bypass_prefix();
- // Use starts_with when dropping support for gcc 8.
- return (tas_cond.isPresent() && (tas_cond.getSelection().substr(0, strlen(prefix)) == prefix));
+ return (tas_cond.isPresent() && (tas_cond.getSelection().starts_with(reindexing_bucket_lock_bypass_prefix())));
}
// Precondition: put_is_from_reindexing_visitor(cmd) == true