mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
dbwrap_ctdb: increment record count in traverse_callback()
state->count wasn't incremented and is returned at the end of a dbwrap_traverse(). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
eaaee00a06
commit
7c0607e96d
@ -1545,6 +1545,7 @@ static void traverse_callback(TDB_DATA key, TDB_DATA data, void *private_data)
|
||||
rec = db_ctdb_fetch_locked(state->db, tmp_ctx, key);
|
||||
if (rec != NULL && rec->value.dsize > 0) {
|
||||
state->fn(rec, state->private_data);
|
||||
state->count++;
|
||||
}
|
||||
talloc_free(tmp_ctx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user