path: root/include
diff options
authorPablo Neira Ayuso <>2011-02-15 01:51:11 +0100
committerPablo Neira Ayuso <>2011-02-15 01:51:11 +0100
commitc2acb11453fc75519862240298e106ac79274780 (patch)
treee5c9c645a9ea86c8316fa502ae907c03c0e8d9fc /include
parent98756c2608f0879a2322919c7441973216565272 (diff)
cache: log if we received a commit request while already one in progress
This patch improves the case in which we receive a commit request but we are already performing one. This behaviour is suspicious since the HA manager should not trigger a double master transition. Otherwise, something probably is not configured appropriately. This improves 98756c2608f0879a2322919c7441973216565272 "cache: close commit request if we already have one in progress". Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cache.h b/include/cache.h
index 28917f2..ddf2049 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -121,7 +121,7 @@ void cache_iterate_limit(struct cache *c, void *data, uint32_t from, uint32_t st
struct nfct_handle;
void cache_dump(struct cache *c, int fd, int type);
-void cache_commit(struct cache *c, struct nfct_handle *h, int clientfd);
+int cache_commit(struct cache *c, struct nfct_handle *h, int clientfd);
void cache_flush(struct cache *c);
void cache_bulk(struct cache *c);