summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/mmap_v1')
-rw-r--r--src/mongo/db/storage/mmap_v1/dur.cpp2
-rw-r--r--src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/storage/mmap_v1/dur.cpp b/src/mongo/db/storage/mmap_v1/dur.cpp
index 09a3c995acf..dd7391b350d 100644
--- a/src/mongo/db/storage/mmap_v1/dur.cpp
+++ b/src/mongo/db/storage/mmap_v1/dur.cpp
@@ -325,7 +325,7 @@ namespace {
// See SERVER-5723 for performance improvement.
// See SERVER-5680 to see why this code is necessary on Windows.
// See SERVER-8795 to see why this code is necessary on Solaris.
-#if defined(_WIN32) || defined(__sunos__)
+#if defined(_WIN32) || defined(__sun)
LockMongoFilesExclusive lk;
#else
LockMongoFilesShared lk;
diff --git a/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp b/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
index 29119c7116d..f84f7810bc3 100644
--- a/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
+++ b/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
@@ -61,7 +61,7 @@ namespace mongo {
namespace {
-#if !defined(__sunos__)
+#if !defined(__sun)
// if doingRepair is true don't consider unclean shutdown an error
void acquirePathLock(MMAPV1Engine* storageEngine,
bool doingRepair,
@@ -153,7 +153,7 @@ namespace {
uasserted(13618, "can't start without --journal enabled when journal/ files are present");
}
}
-#endif // !defined(__sunos__)
+#endif // !defined(__sun)
/// warn if readahead > 256KB (gridfs chunk size)