summaryrefslogtreecommitdiff
path: root/src/cstore/unionfs/cstore-unionfs.hpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-05-17 11:04:53 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2011-05-17 11:04:53 -0700
commite9a2127e7fc20673e3aa1b09d54743077947c70e (patch)
tree1df056ff8f61cc7a81b9a42f2395828905e38a63 /src/cstore/unionfs/cstore-unionfs.hpp
parent9d5b213893a79939ac8f2e871e18ba3163eeab50 (diff)
downloadvyatta-cfg-e9a2127e7fc20673e3aa1b09d54743077947c70e.tar.gz
vyatta-cfg-e9a2127e7fc20673e3aa1b09d54743077947c70e.zip
reimplement commit locking
Diffstat (limited to 'src/cstore/unionfs/cstore-unionfs.hpp')
-rw-r--r--src/cstore/unionfs/cstore-unionfs.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp
index c7cd2d9..1240488 100644
--- a/src/cstore/unionfs/cstore-unionfs.hpp
+++ b/src/cstore/unionfs/cstore-unionfs.hpp
@@ -57,6 +57,7 @@ public:
bool inSession();
bool clearCommittedMarkers();
bool commitConfig(commit::PrioNode& pnode);
+ bool getCommitLock();
private:
// constants
@@ -82,6 +83,7 @@ private:
static const string C_TAG_NAME;
static const string C_VAL_NAME;
static const string C_DEF_NAME;
+ static const string C_COMMIT_LOCK_FILE;
/* max size for a file.
* currently this includes value file and comment file.