summaryrefslogtreecommitdiff
path: root/storage/ndb/src/kernel/blocks/ndbfs
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-11-22 18:05:10 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-11-22 18:05:10 +0100
commitc9f8b7b41f29b0c356d8985361fc4c9ae9ede562 (patch)
tree012ff4c3b10b4c6cccda0e376a448867bad6b63d /storage/ndb/src/kernel/blocks/ndbfs
parent36dd2cf6251de53c86da69213c72aba1db3a56fb (diff)
downloadmariadb-git-c9f8b7b41f29b0c356d8985361fc4c9ae9ede562.tar.gz
fix error handling if thread creation fails in ndbd
make sure ndb threads are not started with too small stacksize (which results in default, much too big, stack size to be used) moved initialization of ndbd fs block first to ensure that it gets enough space for allocation of file system thread stacks changed event buffer reporting in ndb to occur not as often corrected the bank application corrected output from run-test make-config.sh storage/ndb/src/common/portlib/NdbThread.c: fix error handling if thread creation fails in ndbd make sure ndb threads are not started with too small stacksize (which results in default, much too big, stack size to be used) storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: moved initialization of ndbd fs block first to ensure that it gets enough space for allocation of file system thread stacks storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp: fix error handling if thread creation fails in ndbd storage/ndb/src/ndbapi/Ndb.cpp: changed event buffer reporting in ndb to occur not as often storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp: changed event buffer reporting in ndb to occur not as often storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp: changed event buffer reporting in ndb to occur not as often storage/ndb/test/ndbapi/bank/BankLoad.cpp: corrected the bank application storage/ndb/test/run-test/make-config.sh: corrected output from run-test make-config.sh
Diffstat (limited to 'storage/ndb/src/kernel/blocks/ndbfs')
-rw-r--r--storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp b/storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
index c371b1cd890..75ab83b2e98 100644
--- a/storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
+++ b/storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
@@ -122,6 +122,8 @@ AsyncFile::doStart()
stackSize,
(char*)&buf,
NDB_THREAD_PRIO_MEAN);
+ if (theThreadPtr == 0)
+ ERROR_SET(fatal, NDBD_EXIT_MEMALLOC, "","Could not allocate file system thread");
NdbCondition_Wait(theStartConditionPtr,
theStartMutexPtr);