diff options
author | Aaron <aaron@10gen.com> | 2009-03-09 20:02:02 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-03-09 20:02:02 -0400 |
commit | 56e81849a0c92bd9249dbd504a0978a94dd68aba (patch) | |
tree | 8d7106cf42cfd50520cdc55c2f5445332f4f0f93 /db/instance.h | |
parent | b4ff0befae79396e0bc37b46a15bd987229a5dfb (diff) | |
download | mongo-56e81849a0c92bd9249dbd504a0978a94dd68aba.tar.gz |
Use os file locking to lock dbpath
Diffstat (limited to 'db/instance.h')
-rw-r--r-- | db/instance.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |