Browse Source

Clarify output when fsck database is locked

tags/nilmdb-1.9.2
Jim Paris 9 years ago
parent
commit
68addb4e4a
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      nilmdb/fsck/fsck.py

+ 5
- 1
nilmdb/fsck/fsck.py View File

@@ -118,7 +118,11 @@ class Fsck(object):
raise FsckError("Bulk data directory missing (%s)", self.bulkpath)
with open(self.bulklock, "w") as lockfile:
if not nilmdb.utils.lock.exclusive_lock(lockfile):
raise FsckError('database already locked by another process')
raise FsckError('Database already locked by another process\n'
'Make sure all other processes that might be '
'using the database are stopped.\n'
'Restarting apache will cause it to unlock '
'the db until a request is received.')
# unlocked immediately
self.bulk = nilmdb.server.bulkdata.BulkData(self.basepath)



Loading…
Cancel
Save