1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-19 18:50:24 +03:00

add a comment that sometimes sending remote calls straight to the

lmaster instead of what the nodes think is the dmaster (which might be 
stale) improve performance.

(This used to be ctdb commit f535f79e6a2a6c6d07141b96e0b957fa93c684f4)
This commit is contained in:
Ronnie Sahlberg 2007-04-23 17:05:09 +10:00
parent 1bb55c1f77
commit 42971d6565

View File

@ -716,6 +716,14 @@ struct ctdb_call_state *ctdb_daemon_call_send_remote(struct ctdb_db_context *ctd
state->c->hdr.ctdb_version = CTDB_VERSION;
state->c->hdr.operation = CTDB_REQ_CALL;
state->c->hdr.destnode = header->dmaster;
/*
always sending the remote call straight to the lmaster
improved performance slightly in some tests.
worth investigating further in the future
state->c->hdr.destnode = ctdb_lmaster(ctdb_db->ctdb, &(call->key));
*/
state->c->hdr.srcnode = ctdb->vnn;
/* this limits us to 16k outstanding messages - not unreasonable */
state->c->hdr.reqid = idr_get_new(ctdb->idr, state, 0xFFFF);