diff options
author | unknown <mronstrom@mysql.com> | 2004-12-31 02:18:21 +0100 |
---|---|---|
committer | unknown <mronstrom@mysql.com> | 2004-12-31 02:18:21 +0100 |
commit | 90f86403a9fa5b47601f3f0d22b4b8b7e527590f (patch) | |
tree | 90fd630303683aa4f9a6b4687d74de9b0a5baefd /ndb | |
parent | 0e302f5e8bdbcb6df7d6a1fb78b0d784dfb798d8 (diff) | |
download | mariadb-git-90f86403a9fa5b47601f3f0d22b4b8b7e527590f.tar.gz |
Checking size to no of free + 1 was not correct when
entry was released before check. Thus empty it is when
size == no of free
This caused a memory leak which inserted a hard limit of
max 64 unique indexes in the cluster.
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/kernel/blocks/suma/Suma.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ndb/src/kernel/blocks/suma/Suma.cpp b/ndb/src/kernel/blocks/suma/Suma.cpp index 836fa28d9ad..88e6dea35ac 100644 --- a/ndb/src/kernel/blocks/suma/Suma.cpp +++ b/ndb/src/kernel/blocks/suma/Suma.cpp @@ -3471,10 +3471,10 @@ SumaParticipant::completeSubRemoveReq(Signal* signal, SubscriptionPtr subPtr) { */ #if 0 ndbout_c("c_subscriptionPool.getSize() %d c_subscriptionPool.getNoOfFree()%d", - c_subscriptionPool.getSize(),c_subscriptionPool.getNoOfFree()+1); + c_subscriptionPool.getSize(),c_subscriptionPool.getNoOfFree()); #endif - if(c_subscriptionPool.getSize() == c_subscriptionPool.getNoOfFree()+1) { + if(c_subscriptionPool.getSize() == c_subscriptionPool.getNoOfFree()) { jam(); #if 0 ndbout_c("SUB_REMOVE_REQ:Clearing c_tables"); |