summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-15 09:16:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:28 -0500
commitf799df03d4899ce9a8e6c5b025424501ceb17c1f (patch)
tree9741927ad61a31ba10288f9e4c59ff680f29f53a /source3
parent7d2aa0d3f1aa11492ce0b415769870e8690dc1f9 (diff)
downloadsamba-f799df03d4899ce9a8e6c5b025424501ceb17c1f.tar.gz
samba-f799df03d4899ce9a8e6c5b025424501ceb17c1f.tar.bz2
samba-f799df03d4899ce9a8e6c5b025424501ceb17c1f.zip
r19288: tdb_prs_store is right now used to store printer and share security
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_parse/parse_prs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c
index d97b1b0dff..54bbe3adf6 100644
--- a/source3/rpc_parse/parse_prs.c
+++ b/source3/rpc_parse/parse_prs.c
@@ -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 */