Skip to content

Commit 177202f

Browse files
committed
ndb - Dynamic memory for schema transaction
Replacing statically allocated memory pools (ArrayPool) with dynamically allocated (ArenaPool) for some objects seized and released within a schema transaction. A new resource SCHEMA_TRANS_MEMORY with atleast 2MiB created.
1 parent aadf9d5 commit 177202f

File tree

9 files changed

+392
-333
lines changed

9 files changed

+392
-333
lines changed

storage/ndb/include/kernel/ndb_limits.h

-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@
172172
/*
173173
* Schema transactions
174174
*/
175-
#define MAX_SCHEMA_TRANSACTIONS 5
176175
#define MAX_SCHEMA_OPERATIONS 256
177176

178177
/*

storage/ndb/include/kernel/signaldata/SchemaTrans.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ struct SchemaTransBeginRef {
4444
BusyWithNR = 711,
4545
TooManySchemaTrans = 780,
4646
IncompatibleVersions = 763,
47-
Nodefailure = 786
47+
Nodefailure = 786,
48+
OutOfSchemaTransMemory = 796
4849
};
4950
Uint32 senderRef;
5051
Uint32 transId;

0 commit comments

Comments
 (0)