summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_lock_file_posix.cpp
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2016-02-04 15:00:39 -0500
committerAdam Midvidy <amidvidy@gmail.com>2016-02-17 16:20:26 -0500
commit6eb7010239c83e3d338d02175db6b82627e03964 (patch)
treebc4b561485adb8e3ee29da6dbc495455efea4bab /src/mongo/db/storage/storage_engine_lock_file_posix.cpp
parentf5fd9b3328cfa07c6a5d4f296bbaf6c3d0c3946b (diff)
downloadmongo-6eb7010239c83e3d338d02175db6b82627e03964.tar.gz
SERVER-22352 do not fail startup if lockFile cannot be created in readOnly mode
Diffstat (limited to 'src/mongo/db/storage/storage_engine_lock_file_posix.cpp')
-rw-r--r--src/mongo/db/storage/storage_engine_lock_file_posix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/storage_engine_lock_file_posix.cpp b/src/mongo/db/storage/storage_engine_lock_file_posix.cpp
index cb78d518e15..acbec3fdd8e 100644
--- a/src/mongo/db/storage/storage_engine_lock_file_posix.cpp
+++ b/src/mongo/db/storage/storage_engine_lock_file_posix.cpp
@@ -192,7 +192,7 @@ void StorageEngineLockFile::clearPidAndUnlock() {
log() << "shutdown: removing fs lock...";
// This ought to be an unlink(), but Eliot says the last
// time that was attempted, there was a race condition
- // with acquirePathLock().
+ // with StorageEngineLockFile::open().
if (::ftruncate(_lockFileHandle->_fd, 0)) {
int errorcode = errno;
log() << "couldn't remove fs lock " << errnoWithDescription(errorcode);