r19288: tdb_prs_store is right now used to store printer and share security
authorVolker Lendecke <vlendec@samba.org>
Sun, 15 Oct 2006 09:16:41 +0000 (09:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:28 +0000 (12:15 -0500)
descriptors. Both databases are long-lived and not frequently written, so I
think storing it deserves a tdb transaction.

Volker
(This used to be commit 2d4b5f5727104f87b8282fc0e94675b0dc4cd9d8)

source3/rpc_parse/parse_prs.c

index d97b1b0dffa16ad93ba37c3a6fc30d3bb217913c..54bbe3adf6c10d9baf830db4a24d88ba7a04b787 100644 (file)
@@ -1461,7 +1461,7 @@ int tdb_prs_store(TDB_CONTEXT *tdb, char *keystr, prs_struct *ps)
     kbuf.dsize = strlen(keystr)+1;
     dbuf.dptr = ps->data_p;
     dbuf.dsize = prs_offset(ps);
-    return tdb_store(tdb, kbuf, dbuf, TDB_REPLACE);
+    return tdb_trans_store(tdb, kbuf, dbuf, TDB_REPLACE);
 }
 
 /* useful function to fetch a structure into rpc wire format */