summaryrefslogtreecommitdiff
path: root/src/mongo/s/shard_util.h
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-08-19 17:14:33 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-08-25 12:56:28 -0400
commitf415aad16ec26a89110a71232dc898218dc5d85c (patch)
tree14cae84b235c52981d8d661b5219d02aab193cf0 /src/mongo/s/shard_util.h
parenteb0430ee860d22b164cd603ce7186842f72c8537 (diff)
downloadmongo-f415aad16ec26a89110a71232dc898218dc5d85c.tar.gz
SERVER-19875 Add OperationContext to CatalogManager::getAllShards
Diffstat (limited to 'src/mongo/s/shard_util.h')
-rw-r--r--src/mongo/s/shard_util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/s/shard_util.h b/src/mongo/s/shard_util.h
index b9d546b75a2..640dd09d5c1 100644
--- a/src/mongo/s/shard_util.h
+++ b/src/mongo/s/shard_util.h
@@ -34,6 +34,7 @@
namespace mongo {
+class OperationContext;
class ShardRegistry;
template <typename T>
class StatusWith;
@@ -50,7 +51,9 @@ namespace shardutil {
* ShardNotFound if shard by that id is not available on the registry
* NoSuchKey if the total shard size could not be retrieved
*/
-StatusWith<long long> retrieveTotalShardSize(ShardId shardId, ShardRegistry* shardRegistry);
+StatusWith<long long> retrieveTotalShardSize(OperationContext* txn,
+ ShardId shardId,
+ ShardRegistry* shardRegistry);
};
} // namespace mongo