diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2011-05-17 11:04:53 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2011-05-17 11:04:53 -0700 |
commit | e9a2127e7fc20673e3aa1b09d54743077947c70e (patch) | |
tree | 1df056ff8f61cc7a81b9a42f2395828905e38a63 /src/cstore/cstore.hpp | |
parent | 9d5b213893a79939ac8f2e871e18ba3163eeab50 (diff) | |
download | vyatta-cfg-e9a2127e7fc20673e3aa1b09d54743077947c70e.tar.gz vyatta-cfg-e9a2127e7fc20673e3aa1b09d54743077947c70e.zip |
reimplement commit locking
Diffstat (limited to 'src/cstore/cstore.hpp')
-rw-r--r-- | src/cstore/cstore.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cstore/cstore.hpp b/src/cstore/cstore.hpp index af4a56d..d6f6d67 100644 --- a/src/cstore/cstore.hpp +++ b/src/cstore/cstore.hpp @@ -177,6 +177,11 @@ public: bool markCfgPathCommitted(const Cpath& path_comps, bool is_delete); virtual bool clearCommittedMarkers() = 0; virtual bool commitConfig(commit::PrioNode& pnode) = 0; + virtual bool getCommitLock() = 0; + /* note: the getCommitLock() function must guarantee lock release/cleanup + * upon process termination (either normally or abnormally). there is no + * separate call for releasing the lock. + */ // load bool loadFile(const char *filename); |