summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2022-01-11 13:41:42 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-11 14:30:26 +0000
commitbcadf746d07d2eb75103ca9b7956b02a481d7a7e (patch)
treee3ff2ac3b901bbaf6ebbfe34de7090398977e449 /src/mongo/db/s/flush_routing_table_cache_updates_command.cpp
parentf9c396ab21eb033388a86bd494429966eb138208 (diff)
downloadmongo-bcadf746d07d2eb75103ca9b7956b02a481d7a7e.tar.gz
SERVER-62065 Make the CPP name of '_flushRoutingTableCacheUpdates' more user-friendly
Diffstat (limited to 'src/mongo/db/s/flush_routing_table_cache_updates_command.cpp')
-rw-r--r--src/mongo/db/s/flush_routing_table_cache_updates_command.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp b/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp
index 06031c336a9..a387f7fae82 100644
--- a/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp
+++ b/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp
@@ -103,11 +103,13 @@ public:
uassertStatusOK(shardingState->canAcceptShardedCommands());
uassert(ErrorCodes::IllegalOperation,
- "Can't issue _flushRoutingTableCacheUpdates from 'eval'",
+ str::stream() << "Can't issue " << Derived::Request::kCommandName
+ << " from 'eval'",
!opCtx->getClient()->isInDirectClient());
uassert(ErrorCodes::IllegalOperation,
- "Can't call _flushRoutingTableCacheUpdates if in read-only mode",
+ str::stream() << "Can't call " << Derived::Request::kCommandName
+ << " if in read-only mode",
!storageGlobalParams.readOnly);
auto& oss = OperationShardingState::get(opCtx);
@@ -149,7 +151,7 @@ public:
class FlushRoutingTableCacheUpdatesCmd
: public FlushRoutingTableCacheUpdatesCmdBase<FlushRoutingTableCacheUpdatesCmd> {
public:
- using Request = _flushRoutingTableCacheUpdates;
+ using Request = FlushRoutingTableCacheUpdates;
static bool supportsWriteConcern() {
return false;
@@ -161,7 +163,7 @@ class FlushRoutingTableCacheUpdatesCmdWithWriteConcern
: public FlushRoutingTableCacheUpdatesCmdBase<
FlushRoutingTableCacheUpdatesCmdWithWriteConcern> {
public:
- using Request = _flushRoutingTableCacheUpdatesWithWriteConcern;
+ using Request = FlushRoutingTableCacheUpdatesWithWriteConcern;
static bool supportsWriteConcern() {
return true;