From e401ac9c355d4c4bcfad47019e65cb8ee6f85cee Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Fri, 16 Oct 2009 12:54:31 -0400 Subject: [PATCH] win32 fix --- util/assert_util.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/assert_util.cpp b/util/assert_util.cpp index 2937fa2388d..90bece9733b 100644 --- a/util/assert_util.cpp +++ b/util/assert_util.cpp @@ -105,6 +105,10 @@ namespace mongo { } if ( _file ){ +#ifdef _WIN32 + cout << "log rotationd doesn't work on windows" << endl; + return; +#else struct tm t; localtime_r( &_opened , &t ); @@ -113,7 +117,7 @@ namespace mongo { << "_" << t.tm_hour << "-" << t.tm_min << "-" << t.tm_sec; string s = ss.str(); rename( _path.c_str() , s.c_str() ); - +#endif } _file = freopen( _path.c_str() , _append ? "a" : "w" , stdout );