diff options
author | Maria van Keulen <maria@mongodb.com> | 2017-03-07 12:00:08 -0500 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2017-03-07 12:00:08 -0500 |
commit | 589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79 (patch) | |
tree | c7a090ffdd56a91ae677e2492c61b820af44f964 /src/mongo/s/balancer_configuration.h | |
parent | 3cba97198638df3750e3b455e2ad57af7ee536ae (diff) | |
download | mongo-589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79.tar.gz |
SERVER-27938 Rename all OperationContext variables to opCtx
This commit is an automated rename of all whole word instances of txn,
_txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all
.cpp and .h files in src/mongo.
Diffstat (limited to 'src/mongo/s/balancer_configuration.h')
-rw-r--r-- | src/mongo/s/balancer_configuration.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/s/balancer_configuration.h b/src/mongo/s/balancer_configuration.h index 2f5370d162c..71a3832f537 100644 --- a/src/mongo/s/balancer_configuration.h +++ b/src/mongo/s/balancer_configuration.h @@ -214,7 +214,7 @@ public: /** * Synchronous method, which writes the balancer mode to the configuration data. */ - Status setBalancerMode(OperationContext* txn, BalancerSettingsType::BalancerMode mode); + Status setBalancerMode(OperationContext* opCtx, BalancerSettingsType::BalancerMode mode); /** * Returns whether balancing is allowed based on both the enabled state of the balancer and the @@ -254,27 +254,27 @@ public: * This method is thread-safe but it doesn't make sense to be called from more than one thread * at a time. */ - Status refreshAndCheck(OperationContext* txn); + Status refreshAndCheck(OperationContext* opCtx); private: /** * Reloads the balancer configuration from the settings document. Fails if the settings document * cannot be read, in which case the values will remain unchanged. */ - Status _refreshBalancerSettings(OperationContext* txn); + Status _refreshBalancerSettings(OperationContext* opCtx); /** * Reloads the chunk sizes configuration from the settings document. Fails if the settings * document cannot be read or if any setting contains invalid value, in which case the offending * value will remain unchanged. */ - Status _refreshChunkSizeSettings(OperationContext* txn); + Status _refreshChunkSizeSettings(OperationContext* opCtx); /** * Reloads the autosplit configuration from the settings document. Fails if the settings * document cannot be read. */ - Status _refreshAutoSplitSettings(OperationContext* txn); + Status _refreshAutoSplitSettings(OperationContext* opCtx); // The latest read balancer settings and a mutex to protect its swaps mutable stdx::mutex _balancerSettingsMutex; |