mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
dbwrap: add comment describing behaviour of dbwrap_change_uint32_atomic().
Michael (This used to be commit 7edfb54c865ddcfd5cdcc8c2184b96aaac2d2ec0)
This commit is contained in:
parent
b59ed9c05f
commit
149e1ae25a
@ -98,6 +98,13 @@ bool dbwrap_store_uint32(struct db_context *db, const char *keystr, uint32_t v)
|
||||
return NT_STATUS_IS_OK(status) ? 0 : -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Atomic unsigned integer change (addition):
|
||||
*
|
||||
* if value does not exist yet in the db, use *oldval as initial old value.
|
||||
* return old value in *oldval.
|
||||
* store *oldval + change_val to db.
|
||||
*/
|
||||
uint32_t dbwrap_change_uint32_atomic(struct db_context *db, const char *keystr,
|
||||
uint32_t *oldval, uint32_t change_val)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user