Commit 02926b4b authored by Klaus Aehlig's avatar Klaus Aehlig

Provide path to the queue lock file

To avoid several processes accessing the queue at the same time,
Ganeti locks the queue via a lock file on disk. Provide the path
to this file.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent b498ed42
......@@ -35,6 +35,7 @@ module Ganeti.Path
, nodedCertFile
, queueDir
, jobQueueSerialFile
, jobQueueLockFile
, jobQueueArchiveSubDir
, instanceReasonDir
, getInstReasonFilename
......@@ -110,6 +111,10 @@ queueDir = dataDirP "queue"
jobQueueSerialFile :: IO FilePath
jobQueueSerialFile = queueDir `pjoin` "serial"
-- | Job queue lock file
jobQueueLockFile :: IO FilePath
jobQueueLockFile = queueDir `pjoin` "lock"
-- | Job queue archive directory.
jobQueueArchiveSubDir :: FilePath
jobQueueArchiveSubDir = "archive"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment