Commit d02da1d9 authored by unknown's avatar unknown

Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb

into mysql.com:/home/jonas/src/mysql-4.1-ndb

parents 43acfcae 353fb4c8
...@@ -6174,7 +6174,7 @@ void Dbdih::execCREATE_FRAGMENTATION_REQ(Signal * signal){ ...@@ -6174,7 +6174,7 @@ void Dbdih::execCREATE_FRAGMENTATION_REQ(Signal * signal){
break; break;
case DictTabInfo::AllNodesLargeTable: case DictTabInfo::AllNodesLargeTable:
jam(); jam();
noOfFragments = 8 * cnoOfNodeGroups; noOfFragments = 4 * csystemnodes;
break; break;
case DictTabInfo::SingleFragment: case DictTabInfo::SingleFragment:
jam(); jam();
...@@ -11054,6 +11054,7 @@ void Dbdih::initRestorableGciFiles() ...@@ -11054,6 +11054,7 @@ void Dbdih::initRestorableGciFiles()
void Dbdih::initTable(TabRecordPtr tabPtr) void Dbdih::initTable(TabRecordPtr tabPtr)
{ {
tabPtr.p->noOfFragChunks = 0;
tabPtr.p->method = TabRecord::NOTDEFINED; tabPtr.p->method = TabRecord::NOTDEFINED;
tabPtr.p->tabStatus = TabRecord::TS_IDLE; tabPtr.p->tabStatus = TabRecord::TS_IDLE;
tabPtr.p->noOfWords = 0; tabPtr.p->noOfWords = 0;
......
...@@ -154,8 +154,8 @@ ...@@ -154,8 +154,8 @@
* DIH allocates fragments in chunk for fast find of fragment record. * DIH allocates fragments in chunk for fast find of fragment record.
* These parameters define chunk size and log of chunk size. * These parameters define chunk size and log of chunk size.
*/ */
#define NO_OF_FRAGS_PER_CHUNK 8 #define NO_OF_FRAGS_PER_CHUNK 4
#define LOG_NO_OF_FRAGS_PER_CHUNK 3 #define LOG_NO_OF_FRAGS_PER_CHUNK 2
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */
// To avoid synching too big chunks at a time we synch after writing // To avoid synching too big chunks at a time we synch after writing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment