diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-03-28 13:39:45 -0400 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-04-30 11:50:37 -0400 |
commit | 07d7a7095a7ebb116b0d02a4ac396620710e9e77 (patch) | |
tree | f17d474d953d49cc1d5d130a8a6c38fd975d10a2 /src/mongo/db/commands/restart_catalog_command.cpp | |
parent | 3d43d9420c12c2f47d614fc6f2546cf80742817e (diff) | |
download | mongo-07d7a7095a7ebb116b0d02a4ac396620710e9e77.tar.gz |
SERVER-33674 Require GlobalLocks with deadlines to specify interrupt behavior when interrupted
Diffstat (limited to 'src/mongo/db/commands/restart_catalog_command.cpp')
-rw-r--r-- | src/mongo/db/commands/restart_catalog_command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/restart_catalog_command.cpp b/src/mongo/db/commands/restart_catalog_command.cpp index a3aefcd3168..e8a37330d48 100644 --- a/src/mongo/db/commands/restart_catalog_command.cpp +++ b/src/mongo/db/commands/restart_catalog_command.cpp @@ -87,7 +87,7 @@ public: const std::string& db, const BSONObj& cmdObj, BSONObjBuilder& result) final { - Lock::GlobalLock global(opCtx, MODE_X, Date_t::max()); + Lock::GlobalLock global(opCtx, MODE_X); // This command will fail without modifying the catalog if there are any databases that are // marked drop-pending. (Otherwise, the Database object will be reconstructed when |