From 56e81849a0c92bd9249dbd504a0978a94dd68aba Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 9 Mar 2009 20:02:02 -0400 Subject: Use os file locking to lock dbpath --- db/instance.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'db/instance.h') diff --git a/db/instance.h b/db/instance.h index 925cdb49ac3..91bd7c190f1 100644 --- a/db/instance.h +++ b/db/instance.h @@ -97,7 +97,9 @@ namespace mongo { void receivedQuery(DbResponse& dbresponse, /*AbstractMessagingPort& dbMsgPort, */Message& m, stringstream& ss, bool logit); void getDatabaseNames( vector< string > &names ); - + string lockFileName(); + extern int lockFile; + // --- local client --- class DBDirectClient : public DBClientBase { -- cgit v1.2.1