Bug Workaround - locking

- Added support for the "locking" configuration variable that disables
  file locking.  This can be helpful to folks who use task on Solaris,
  and store their task data files on an NFS mount.
This commit is contained in:
Paul Beckingham
2009-03-10 15:21:29 -04:00
parent dc946e175e
commit d174bb1143
8 changed files with 58 additions and 15 deletions

View File

@@ -299,6 +299,10 @@ int main (int argc, char** argv)
std::string dataLocation = expandPath (conf.get ("data.location"));
tdb.dataDirectory (dataLocation);
// Allow user override of file locking. Solaris/NFS machines may want this.
if (! conf.get ("locking", true))
tdb.noLock ();
// Check for silly shadow file settings.
std::string shadowFile = expandPath (conf.get ("shadow.file"));
if (shadowFile != "")