From: Peter Somogyi Date: Thu, 25 Jan 2007 13:22:03 +0000 (+0100) Subject: Fixed a side effect of previous revert. X-Git-Tag: tevent-0.9.20~348^2~2975^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b8fe2af0a9700319fb87bd09c8acd4c38ff7518;p=thirdparty%2Fsamba.git Fixed a side effect of previous revert. (This used to be ctdb commit 08d013df5c6389c471036b20758463a844d33027) --- diff --git a/ctdb/.bzrignore b/ctdb/.bzrignore index f303d93c9cd..b7f0a276305 100644 --- a/ctdb/.bzrignore +++ b/ctdb/.bzrignore @@ -1,10 +1,8 @@ config.status Makefile bin -common config.log push.sh ctdb_test config.cache configure -configure diff --git a/ctdb/ib/ibw_ctdb_init.c b/ctdb/ib/ibw_ctdb_init.c index 672dec6d329..0d4f01d7635 100644 --- a/ctdb/ib/ibw_ctdb_init.c +++ b/ctdb/ib/ibw_ctdb_init.c @@ -108,6 +108,18 @@ static int ctdb_ibw_add_node(struct ctdb_node *node) return 0; } +static int ctdb_ibw_queue_pkt(struct ctdb_node *node, uint8_t *data, uint32_t length) +{ + struct ibw_conn *conn = talloc_get_type(node->private, struct ibw_conn); + int rc; + + rc = ibw_send(conn, data, last_key, length); + last_key = NULL; + + return rc; +} + +#ifdef __NOTDEF__ /* * transport packet allocator - allows transport to control memory for packets */ @@ -122,17 +134,6 @@ static void *ctdb_ibw_allocate_pkt(struct ctdb_node *node, size_t size) return buf; } -static int ctdb_ibw_queue_pkt(struct ctdb_node *node, uint8_t *data, uint32_t length) -{ - struct ibw_conn *conn = talloc_get_type(node->private, struct ibw_conn); - int rc; - - rc = ibw_send(conn, data, last_key, length); - last_key = NULL; - - return rc; -} - static void ctdb_ibw_dealloc_pkt(struct ctdb_node *node, void *data) { if (last_key) { @@ -151,14 +152,16 @@ static int ctdb_ibw_stop(struct ctdb_context *cctx) return ibw_stop(ictx); } +#endif /* __NOTDEF__ */ + static const struct ctdb_methods ctdb_ibw_methods = { .start = ctdb_ibw_start, .add_node = ctdb_ibw_add_node, .queue_pkt = ctdb_ibw_queue_pkt, - .allocate_pkt = ctdb_ibw_allocate_pkt, +// .allocate_pkt = ctdb_ibw_allocate_pkt, - .dealloc_pkt = ctdb_ibw_dealloc_pkt, - .stop = ctdb_ibw_stop +// .dealloc_pkt = ctdb_ibw_dealloc_pkt, +// .stop = ctdb_ibw_stop }; /*