mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
DB Seqnum: must provide a ctdb_ltdb_header when calling ctdb_ltdb_fetch()
(This used to be ctdb commit 1fea9ef55a6a9d201ad1b49583451ac3e6b1c66d)
This commit is contained in:
parent
3efb3c74ed
commit
3e2c40c590
@ -938,6 +938,7 @@ static int32_t ctdb_get_db_seqnum(struct ctdb_context *ctdb,
|
||||
TDB_DATA key;
|
||||
TDB_DATA data;
|
||||
TALLOC_CTX *mem_ctx = talloc_new(ctdb);
|
||||
struct ctdb_ltdb_header header;
|
||||
|
||||
ctdb_db = find_ctdb_db(ctdb, db_id);
|
||||
if (!ctdb_db) {
|
||||
@ -949,7 +950,7 @@ static int32_t ctdb_get_db_seqnum(struct ctdb_context *ctdb,
|
||||
key.dptr = (uint8_t *)discard_const(keyname);
|
||||
key.dsize = strlen(keyname) + 1;
|
||||
|
||||
ret = (int32_t)ctdb_ltdb_fetch(ctdb_db, key, NULL, mem_ctx, &data);
|
||||
ret = (int32_t)ctdb_ltdb_fetch(ctdb_db, key, &header, mem_ctx, &data);
|
||||
if (ret != 0) {
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user