From: Peter Somogyi Date: Fri, 16 Feb 2007 14:21:31 +0000 (+0100) Subject: workaround proposal for the initialization-problem X-Git-Tag: tevent-0.9.20~348^2~2965^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=847343e00e5bca1275c868e77f9242838c3b77c0;p=thirdparty%2Fsamba.git workaround proposal for the initialization-problem (This used to be ctdb commit 2ee400d99fb57796a0e7c3256387ef77f6908f33) --- diff --git a/ctdb/common/ctdb_message.c b/ctdb/common/ctdb_message.c index 6e79042b855..c8830b2cac5 100644 --- a/ctdb/common/ctdb_message.c +++ b/ctdb/common/ctdb_message.c @@ -60,6 +60,8 @@ int ctdb_send_message(struct ctdb_context *ctdb, uint32_t vnn, struct ctdb_req_message *r; int len; + ctdb_connect_wait(ctdb); /* recursion */ + len = offsetof(struct ctdb_req_message, data) + data.dsize; r = ctdb->methods->allocate_pkt(ctdb, len); CTDB_NO_MEMORY(ctdb, r);