diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-02-05 12:20:57 -0500 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-02-09 15:54:48 -0500 |
commit | 9b062114129533e1220dca19085b3a872702a28c (patch) | |
tree | 60ebc13409d020395a94bf256f6498ab9833dd79 /src/mongo/db/commands/oplog_note.cpp | |
parent | d95018ef806aa2195a66e804a8cd7da4c4249176 (diff) | |
download | mongo-9b062114129533e1220dca19085b3a872702a28c.tar.gz |
SERVER-32682 Change GlobalLock timeout type to Milliseconds
Diffstat (limited to 'src/mongo/db/commands/oplog_note.cpp')
-rw-r--r-- | src/mongo/db/commands/oplog_note.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/oplog_note.cpp b/src/mongo/db/commands/oplog_note.cpp index 408e73fe0d7..5467ecf6723 100644 --- a/src/mongo/db/commands/oplog_note.cpp +++ b/src/mongo/db/commands/oplog_note.cpp @@ -57,7 +57,7 @@ Status _performNoopWrite(OperationContext* opCtx, BSONObj msgObj, StringData not // Use GlobalLock + lockMMAPV1Flush instead of DBLock to allow return when the lock is not // available. It may happen when the primary steps down and a shared global lock is // acquired. - Lock::GlobalLock lock(opCtx, MODE_IX, 1); + Lock::GlobalLock lock(opCtx, MODE_IX, Milliseconds(1)); if (!lock.isLocked()) { LOG(1) << "Global lock is not available skipping noopWrite"; |