mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
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)
This commit is contained in:
parent
7d2aa0d3f1
commit
f799df03d4
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user