CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
publish::ServerLockFile Class Reference

#include <repository_util.h>

Static Public Member Functions

static bool Acquire (const std::string &path, bool ignore_stale)
 
static void Release (const std::string &path)
 
static bool IsLocked (const std::string &path, bool ignore_stale)
 

Detailed Description

The server lock file is a file containing the pid of the creator, so that with high probability one can determine stale locks. This comes from the cvmfs_server bash times and should at some point become a regular POSIX lock file.

Definition at line 48 of file repository_util.h.

Member Function Documentation

bool publish::ServerLockFile::Acquire ( const std::string &  path,
bool  ignore_stale 
)
static

Definition at line 64 of file repository_util.cc.

Referenced by publish::TransactionImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

bool publish::ServerLockFile::IsLocked ( const std::string &  path,
bool  ignore_stale 
)
static

Definition at line 92 of file repository_util.cc.

Referenced by Acquire(), and publish::CheckTransactionStatus().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::ServerLockFile::Release ( const std::string &  path)
static

Definition at line 123 of file repository_util.cc.

Referenced by publish::Abort(), Acquire(), publish::TransactionImpl(), and publish::TransactionRetry().

Here is the caller graph for this function:


The documentation for this class was generated from the following files: