mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
dbwrap: Do direct struct initalization in db_ctdb_store_db_seqnum()
Save a few lines Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a0b967ec15
commit
2d3cbc53cc
@ -749,14 +749,8 @@ static NTSTATUS db_ctdb_store_db_seqnum(struct db_ctdb_transaction_handle *h,
|
||||
uint64_t seqnum)
|
||||
{
|
||||
NTSTATUS status;
|
||||
const char *keyname = CTDB_DB_SEQNUM_KEY;
|
||||
TDB_DATA key;
|
||||
TDB_DATA data;
|
||||
|
||||
key = string_term_tdb_data(keyname);
|
||||
|
||||
data.dptr = (uint8_t *)&seqnum;
|
||||
data.dsize = sizeof(uint64_t);
|
||||
TDB_DATA key = string_term_tdb_data(CTDB_DB_SEQNUM_KEY);
|
||||
TDB_DATA data = { .dptr=(uint8_t *)&seqnum, .dsize=sizeof(seqnum) };
|
||||
|
||||
status = db_ctdb_transaction_store(h, key, data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user