diff options
-rw-r--r-- | src/mongo/db/commands/write_commands/write_commands.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/commands/write_commands/write_commands.cpp b/src/mongo/db/commands/write_commands/write_commands.cpp index db94b95d29d..50108ee66b5 100644 --- a/src/mongo/db/commands/write_commands/write_commands.cpp +++ b/src/mongo/db/commands/write_commands/write_commands.cpp @@ -49,7 +49,6 @@ #include "mongo/db/server_parameters.h" #include "mongo/db/stats/counters.h" #include "mongo/db/write_concern.h" -#include "mongo/s/d_state.h" namespace mongo { @@ -211,8 +210,6 @@ Status WriteCmd::explain(OperationContext* txn, AutoGetDb autoDb(txn, request.getNS().db(), MODE_IX); Lock::CollectionLock colLock(txn->lockState(), request.getNS().ns(), MODE_IX); - ensureShardVersionOKOrThrow(txn->getClient(), request.getNS().ns()); - // Get a pointer to the (possibly NULL) collection. Collection* collection = NULL; if (autoDb.getDb()) { @@ -249,8 +246,6 @@ Status WriteCmd::explain(OperationContext* txn, AutoGetDb autoDb(txn, request.getNS().db(), MODE_IX); Lock::CollectionLock colLock(txn->lockState(), request.getNS().ns(), MODE_IX); - ensureShardVersionOKOrThrow(txn->getClient(), request.getNS().ns()); - // Get a pointer to the (possibly NULL) collection. Collection* collection = NULL; if (autoDb.getDb()) { |