From 55c304a17b25ed19af984bf3b923e5aaf966f74a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 1 Feb 2006 10:13:27 +0100 Subject: [PATCH] bug 16996 ndbd nodes crash at api heartbeat failure if event/replication is used --- storage/ndb/src/kernel/blocks/suma/Suma.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/storage/ndb/src/kernel/blocks/suma/Suma.cpp b/storage/ndb/src/kernel/blocks/suma/Suma.cpp index 5b929c30817..de148df7812 100644 --- a/storage/ndb/src/kernel/blocks/suma/Suma.cpp +++ b/storage/ndb/src/kernel/blocks/suma/Suma.cpp @@ -181,7 +181,15 @@ Suma::execREAD_CONFIG_REQ(Signal* signal) c_subscriptionPool.setSize(noTables); c_syncPool.setSize(2); c_dataBufferPool.setSize(noAttrs); - c_gcp_pool.setSize(10); + + // Calculate needed gcp pool as 10 records + the ones needed + // during a possible api timeout + Uint32 dbApiHbInterval, gcpInterval; + ndb_mgm_get_int_parameter(p, CFG_DB_API_HEARTBEAT_INTERVAL, + &dbApiHbInterval); + ndb_mgm_get_int_parameter(p, CFG_DB_GCP_INTERVAL, + &gcpInterval); + c_gcp_pool.setSize(10 + (4*dbApiHbInterval)/gcpInterval); c_page_chunk_pool.setSize(50);