diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-22 16:53:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:01 -0500 |
commit | 7a192590514fe8adebf4cdf51dc96c48d5225329 (patch) | |
tree | 2ac142fd2df71ebe11c21e1f8714aa2c4fd4589e /source3/lib | |
parent | ca70f53930df64b6a2fcb563b4ffa84d99a01741 (diff) | |
download | samba-7a192590514fe8adebf4cdf51dc96c48d5225329.tar.gz samba-7a192590514fe8adebf4cdf51dc96c48d5225329.tar.bz2 samba-7a192590514fe8adebf4cdf51dc96c48d5225329.zip |
r19841: Wrap regdb_store_keys and regdb_store_values in tdb transactions
(This used to be commit 5ec737922041b723b9e60c08049ace5fa2fa5dec)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_tdb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c index e847c79369..4db39095a6 100644 --- a/source3/lib/util_tdb.c +++ b/source3/lib/util_tdb.c @@ -302,6 +302,14 @@ int tdb_store_bystring(TDB_CONTEXT *tdb, const char *keystr, TDB_DATA data, int return tdb_store(tdb, key, data, flags); } +int tdb_trans_store_bystring(TDB_CONTEXT *tdb, const char *keystr, + TDB_DATA data, int flags) +{ + TDB_DATA key = make_tdb_data(keystr, strlen(keystr)+1); + + return tdb_trans_store(tdb, key, data, flags); +} + /**************************************************************************** Fetch a buffer using a null terminated string key. Don't forget to call free() on the result dptr. |