From 039856e9e76b2d3af1048adca310d3a37b4ef00a Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Mon, 1 Feb 2010 21:02:06 -0500 Subject: [PATCH] fix for SERVER-592 --- db/instance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/instance.cpp b/db/instance.cpp index 8f22b8c9f66..a956e65701e 100644 --- a/db/instance.cpp +++ b/db/instance.cpp @@ -753,7 +753,7 @@ namespace mongo { #if !defined(_WIN32) && !defined(__sunos__) string name = ( boost::filesystem::path( dbpath ) / "mongod.lock" ).native_file_string(); - if ( boost::filesystem::file_size( name ) > 0 ){ + if ( boost::filesystem::exists( name ) && boost::filesystem::file_size( name ) > 0 ){ cout << "************** \n" << "old lock file: " << lockFile << ". probably means unclean shutdown\n" << "reccomend removing file and running --repair\n"