mirror of
https://github.com/samba-team/samba.git
synced 2025-11-18 00:23:50 +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 commit is contained in:
committed by
Gerald (Jerry) Carter
parent
104f5e9ec9
commit
2d4b5f5727
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user