summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1/mmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/mmap.cpp')
-rw-r--r--src/mongo/db/storage/mmap_v1/mmap.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mongo/db/storage/mmap_v1/mmap.cpp b/src/mongo/db/storage/mmap_v1/mmap.cpp
index 57559d3038e..618e5777de6 100644
--- a/src/mongo/db/storage/mmap_v1/mmap.cpp
+++ b/src/mongo/db/storage/mmap_v1/mmap.cpp
@@ -166,19 +166,8 @@ void MongoFile::closeAllFiles(stringstream& message) {
return total;
}
-void nullFunc() {}
-
-// callback notifications
-void (*MongoFile::notifyPreFlush)() = nullFunc;
-void (*MongoFile::notifyPostFlush)() = nullFunc;
-
/*static*/ int MongoFile::flushAll(bool sync) {
- if (sync)
- notifyPreFlush();
- int x = _flushAll(sync);
- if (sync)
- notifyPostFlush();
- return x;
+ return _flushAll(sync);
}
/*static*/ int MongoFile::_flushAll(bool sync) {