diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-04-27 08:51:08 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-07-02 17:35:19 +0200 |
commit | e08d02d0279f3a69735b7139d9219b603c68b149 (patch) | |
tree | 462febb434d2062001cdda7b3b66cb6207c2b669 /lib/tdb | |
parent | f80076fe43f18404575cb9ac86ecfc637127c4ba (diff) | |
download | samba-e08d02d0279f3a69735b7139d9219b603c68b149.tar.gz |
tdb: Improve documentation for tdb_transaction_start()
It now references the TDB_ALLOW_NESTING and TDB_DISALLOW_NESTING flags
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | lib/tdb/include/tdb.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/tdb/include/tdb.h b/lib/tdb/include/tdb.h index e86d267f677..4bfa1a4dd85 100644 --- a/lib/tdb/include/tdb.h +++ b/lib/tdb/include/tdb.h @@ -656,10 +656,13 @@ void *tdb_get_logging_private(struct tdb_context *tdb); * All operations after the transaction start can either be committed with * tdb_transaction_commit() or cancelled with tdb_transaction_cancel(). * - * If you call tdb_transaction_start() again on the same tdb context while a - * transaction is in progress, then the same transaction buffer is re-used. The - * number of tdb_transaction_{commit,cancel} operations must match the number - * of successful tdb_transaction_start() calls. + * If (the default) TDB_ALLOW_NESTING was specified or + * TDB_DISALLOW_NESTING was not specified as a flag via tdb_open() or + * tdb_open_ex(), you call tdb_transaction_start() again on the same + * tdb context while a transaction is in progress, then the same + * transaction buffer is re-used. The number of + * tdb_transaction_{commit,cancel} operations must match the number of + * successful tdb_transaction_start() calls. * * Note that transactions are by default disk synchronous, and use a recover * area in the database to automatically recover the database on the next open |