From 27f328ad14b8fbc006c5c4103becd0f6a3aaaa5c Mon Sep 17 00:00:00 2001 From: Daniel Moody Date: Thu, 29 Jul 2021 15:28:20 -0500 Subject: SERVER-57446 fix clang-tidy header issues and add header-filter --- src/mongo/db/s/database_sharding_state.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mongo/db/s/database_sharding_state.h') diff --git a/src/mongo/db/s/database_sharding_state.h b/src/mongo/db/s/database_sharding_state.h index 7fafc0fc495..fc752a05966 100644 --- a/src/mongo/db/s/database_sharding_state.h +++ b/src/mongo/db/s/database_sharding_state.h @@ -53,7 +53,7 @@ public: */ using DSSLock = ShardingStateLock; - DatabaseShardingState(const StringData dbName); + DatabaseShardingState(StringData dbName); ~DatabaseShardingState() = default; /** @@ -63,15 +63,15 @@ public: * Must be called with some lock held on the database being looked up and the returned * pointer must not be stored. */ - static DatabaseShardingState* get(OperationContext* opCtx, const StringData dbName); + static DatabaseShardingState* get(OperationContext* opCtx, StringData dbName); /** * Obtain a pointer to the DatabaseShardingState that remains safe to access without holding * a database lock. Should be called instead of the regular get() if no database lock is held. * The returned DatabaseShardingState instance should not be modified! */ - static std::shared_ptr getSharedForLockFreeReads( - OperationContext* opCtx, const StringData dbName); + static std::shared_ptr getSharedForLockFreeReads(OperationContext* opCtx, + StringData dbName); /** * Checks if this shard is the primary shard for the given DB. -- cgit v1.2.1