summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2008-07-18 18:50:16 +1000
committerMichael Adam <obnox@samba.org>2008-08-13 11:54:06 +0200
commitfb97047a840037c2c7237b9de681e386eeedffae (patch)
treeff9634540f7df465f849ff1cc4e7245d15d217c2 /source3/include
parent3cdc00544a0dcb33cfd6e6a686b05dde5dae1deb (diff)
downloadsamba-fb97047a840037c2c7237b9de681e386eeedffae.tar.gz
samba-fb97047a840037c2c7237b9de681e386eeedffae.tar.bz2
samba-fb97047a840037c2c7237b9de681e386eeedffae.zip
Use transaction start/cancel for persistent writes to avoid leaving the database in an inconsistent state if we crash during the operation
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com> (This used to be commit 09329f1f9114af44fc4e5e4f29a7315912313125)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ctdbd_conn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h
index 6e1b2f737a..3ea895d133 100644
--- a/source3/include/ctdbd_conn.h
+++ b/source3/include/ctdbd_conn.h
@@ -66,5 +66,7 @@ NTSTATUS ctdbd_register_ips(struct ctdbd_connection *conn,
NTSTATUS ctdbd_register_reconfigure(struct ctdbd_connection *conn);
NTSTATUS ctdbd_persistent_store(struct ctdbd_connection *conn, uint32_t db_id, TDB_DATA key, TDB_DATA data);
+NTSTATUS ctdbd_start_persistent_update(struct ctdbd_connection *conn, uint32_t db_id, TDB_DATA key, TDB_DATA data);
+NTSTATUS ctdbd_cancel_persistent_update(struct ctdbd_connection *conn, uint32_t db_id, TDB_DATA key, TDB_DATA data);
#endif /* _CTDBD_CONN_H */