summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_lock_file_posix.cpp
diff options
context:
space:
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.cpp6
1 files changed, 0 insertions, 6 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..fd4d987f6c2 100644
--- a/src/mongo/db/storage/storage_engine_lock_file_posix.cpp
+++ b/src/mongo/db/storage/storage_engine_lock_file_posix.cpp
@@ -101,12 +101,6 @@ Status StorageEngineLockFile::open() {
::open(_filespec.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (lockFile < 0) {
int errorcode = errno;
- if (errorcode == EACCES) {
- return Status(ErrorCodes::IllegalOperation,
- str::stream()
- << "Attempted to create a lock file on a read-only directory: "
- << _dbpath << " - did you mean to start with --readOnly?");
- }
return Status(ErrorCodes::DBPathInUse,
str::stream() << "Unable to create/open lock file: " << _filespec << ' '
<< errnoWithDescription(errorcode)