summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_server_op_observer.h
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2020-04-06 16:48:32 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-09 18:36:37 +0000
commit6328c0782c55a5c73a1c1d96a3845eda98dfcd2d (patch)
treed4d8f186c7852c17077d400716c9bd1c90731d0b /src/mongo/db/s/shard_server_op_observer.h
parent2ad12521309aeccc6f712f4ccb532f113255d186 (diff)
downloadmongo-6328c0782c55a5c73a1c1d96a3845eda98dfcd2d.tar.gz
SERVER-45782 ensure internal-only usage of three CollectionShardingRuntime functions
- setFilteringMetadata - getCurrentMetadataIfKnown - getShardVersionIfKnown Have been moved from CSS to CSR to ensure no external usages. Moreover the getShardVersion command is now foribidden on unsharded mongod. It will return ErrorCodes.NoShardingEnabled in such a case.
Diffstat (limited to 'src/mongo/db/s/shard_server_op_observer.h')
-rw-r--r--src/mongo/db/s/shard_server_op_observer.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/db/s/shard_server_op_observer.h b/src/mongo/db/s/shard_server_op_observer.h
index f3e659b437d..c107ef8727a 100644
--- a/src/mongo/db/s/shard_server_op_observer.h
+++ b/src/mongo/db/s/shard_server_op_observer.h
@@ -30,7 +30,6 @@
#pragma once
#include "mongo/db/op_observer.h"
-#include "mongo/db/s/collection_sharding_runtime.h"
namespace mongo {