diff options
-rw-r--r-- | src/mongo/shell/dbshell.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/shell/dbshell.cpp b/src/mongo/shell/dbshell.cpp index ceafa7375b5..12e0b437a32 100644 --- a/src/mongo/shell/dbshell.cpp +++ b/src/mongo/shell/dbshell.cpp @@ -896,6 +896,15 @@ int _main( int argc, char* argv[], char **envp ) { } #ifdef _WIN32 +// gperftools/windows/patch_functions.cc normally defines this function, +// but we do not link this file since it would dynamically patch our functions. +// We override the behavior of this function to no-patch functions, but instead +// simply to do nothing +// TCMalloc calls this via a static initializer +void PatchWindowsFunctions() { + // Intentionally left empty +} + int wmain(int argc, wchar_t* argvW[], wchar_t* envpW[]) { static mongo::StaticObserver staticObserver; int returnCode; |