summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo_freebsd.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-01-24 18:10:10 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-01-27 17:19:06 -0500
commitc4c0f3b6b849deba4b6ebb31ab13b0b26b626c55 (patch)
tree6f6ad5a7db8c1ffda15c0477de340eba854c5605 /src/mongo/util/processinfo_freebsd.cpp
parent9384c692b89034008c419e3779282a41f00a4a61 (diff)
downloadmongo-c4c0f3b6b849deba4b6ebb31ab13b0b26b626c55.tar.gz
On Windows platforms code was added to zero-fill each newly allocated data file in order to work around Windows KB http://support.microsoft.com/kb/2731284. The KB only applies for Windows 7 and Windows 2008 Server installations, so there is no need to do it on each and every system.
This fix restricts the zeroing-out code to only versions, which have had the bug. It will not check whether the hot fix has been installed.
Diffstat (limited to 'src/mongo/util/processinfo_freebsd.cpp')
-rw-r--r--src/mongo/util/processinfo_freebsd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/util/processinfo_freebsd.cpp b/src/mongo/util/processinfo_freebsd.cpp
index 8cf00543bcd..223d513f4d4 100644
--- a/src/mongo/util/processinfo_freebsd.cpp
+++ b/src/mongo/util/processinfo_freebsd.cpp
@@ -172,4 +172,8 @@ namespace mongo {
}
return true;
}
+
+ bool ProcessInfo::isDataFileZeroingNeeded() {
+ return false;
+ }
}