summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-16 12:54:31 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-16 12:54:31 -0400
commite401ac9c355d4c4bcfad47019e65cb8ee6f85cee (patch)
treec3c3f03a3278fc034f46a1ce5a797ea92f6f2043
parentd8235205f5a5ccc47ae2b860f34c00bbff1a14a4 (diff)
downloadmongo-e401ac9c355d4c4bcfad47019e65cb8ee6f85cee.tar.gz
win32 fix
-rw-r--r--util/assert_util.cpp6
1 files changed, 5 insertions, 1 deletions
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 );