1
0
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:
Ralph Boehme 2018-09-09 18:51:43 +02:00 committed by Jeremy Allison
parent eaaee00a06
commit 7c0607e96d

View File

@ -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);
}