1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

traverse: Pass reqid and srcnode information to local database traverse

So that traverse child process can directly send the TRAVERSE_DATA control to
the srcnode without first sending it to local node.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit faabce1b99fb3de9ff03bf54d303e7656538fee3)
This commit is contained in:
Amitay Isaacs 2013-06-06 16:12:07 +10:00
parent 3dcdd39801
commit 557b92fc88

View File

@ -38,6 +38,8 @@ struct ctdb_traverse_local_handle {
pid_t child;
uint64_t srvid;
uint32_t client_reqid;
uint32_t reqid;
int srcnode;
void *private_data;
ctdb_traverse_fn_t callback;
struct timeval start_time;
@ -169,7 +171,9 @@ static struct ctdb_traverse_local_handle *ctdb_traverse_local(struct ctdb_db_con
h->private_data = all_state;
h->ctdb_db = ctdb_db;
h->client_reqid = all_state->client_reqid;
h->reqid = all_state->reqid;
h->srvid = all_state->srvid;
h->srcnode = all_state->srcnode;
h->withemptyrecords = all_state->withemptyrecords;
if (h->child == 0) {