1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

dbwrap: Add a comment explaining a restriction

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Mar 27 13:40:15 CET 2013 on sn-devel-104
This commit is contained in:
Volker Lendecke 2013-03-27 10:23:50 +01:00 committed by Stefan Metzmacher
parent e3f5e474c8
commit e8657887a9

View File

@ -453,6 +453,17 @@ int dbwrap_get_seqnum(struct db_context *db)
int dbwrap_transaction_start(struct db_context *db)
{
if (!db->persistent) {
/*
* dbwrap_ctdb has two different data models for persistent
* and non-persistent databases. Transactions are supported
* only for the persistent databases. This check is here to
* prevent breakages of the cluster case, autobuild at this
* point only tests non-clustered Samba. Before removing this
* check, please make sure that this facility has also been
* added to dbwrap_ctdb.
*
* Thanks, vl
*/
DEBUG(1, ("transactions not supported on non-persistent "
"database %s\n", db->name));
return -1;