workaround proposal for the initialization-problem
authorPeter Somogyi <psomogyi@gamax.hu>
Fri, 16 Feb 2007 14:21:31 +0000 (15:21 +0100)
committerPeter Somogyi <psomogyi@gamax.hu>
Fri, 16 Feb 2007 14:21:31 +0000 (15:21 +0100)
(This used to be ctdb commit 2ee400d99fb57796a0e7c3256387ef77f6908f33)

ctdb/common/ctdb_message.c

index 6e79042b85559cb7aee85f2367071e7b039b751e..c8830b2cac5f8febdd1e273220655b5aee713f99 100644 (file)
@@ -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);