diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2021-07-29 15:28:20 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-02 23:52:53 +0000 |
commit | 27f328ad14b8fbc006c5c4103becd0f6a3aaaa5c (patch) | |
tree | df483a3165f012efe9c395e4bae67aa8097fe1ab /src/mongo/db/s/database_sharding_state.h | |
parent | eae9041c1c1320a15a6b13f3f1d4770a2b96e085 (diff) | |
download | mongo-27f328ad14b8fbc006c5c4103becd0f6a3aaaa5c.tar.gz |
SERVER-57446 fix clang-tidy header issues and add header-filter
Diffstat (limited to 'src/mongo/db/s/database_sharding_state.h')
-rw-r--r-- | src/mongo/db/s/database_sharding_state.h | 8 |
1 files changed, 4 insertions, 4 deletions
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>; - 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<DatabaseShardingState> getSharedForLockFreeReads( - OperationContext* opCtx, const StringData dbName); + static std::shared_ptr<DatabaseShardingState> getSharedForLockFreeReads(OperationContext* opCtx, + StringData dbName); /** * Checks if this shard is the primary shard for the given DB. |