From: Jonas Oreland Date: February 19 2009 12:40pm Subject: bzr commit into mysql-5.1-telco-6.3 branch (jonas:2867) List-Archive: http://lists.mysql.com/commits/66896 Message-Id: <20090219124012.58065982BC0@perch.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT #At file:///home/jonas/src/telco-6.3/ 2867 Jonas Oreland 2009-02-19 [merge] merge 62 to 63 modified: storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp === modified file 'storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp' --- a/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp 2009-02-19 10:04:13 +0000 +++ b/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp 2009-02-19 12:39:56 +0000 @@ -4979,7 +4979,7 @@ void Dbdict::printTables() DLHashTable::Iterator iter; bool moreTables = c_obj_hash.first(iter); printf("OBJECTS IN DICT:\n"); - char name[MAX_TAB_NAME_SIZE]; + char name[PATH_MAX]; while (moreTables) { Ptr tablePtr = iter.curr; ConstRope r(c_rope_pool, tablePtr.p->m_name); @@ -7793,14 +7793,14 @@ void Dbdict::execGET_TABINFOREQ(Signal* ndbrequire(handle.m_cnt == 1); const Uint32 len = req->tableNameLen; - if(len > MAX_TAB_NAME_SIZE){ + if(len > PATH_MAX){ jam(); releaseSections(handle); sendGET_TABINFOREF(signal, req, GetTabInfoRef::TableNameTooLong); return; } - Uint32 tableName[(MAX_TAB_NAME_SIZE + 3) / 4]; + Uint32 tableName[(PATH_MAX + 3) / 4]; SegmentedSectionPtr ssPtr; handle.getSection(ssPtr,GetTabInfoReq::TABLE_NAME); copy(tableName, ssPtr); @@ -8118,7 +8118,7 @@ void Dbdict::sendOLD_LIST_TABLES_CONF(Si pos = 0; } Uint32 i = 0; - char tmp[MAX_TAB_NAME_SIZE]; + char tmp[PATH_MAX]; name.copy(tmp); while (i < size) { char* p = (char*)&conf->tableData[pos]; @@ -8178,7 +8178,7 @@ void Dbdict::sendLIST_TABLES_CONF(Signal */ ListTablesData ltd; const Uint32 listTablesDataSizeInWords = (sizeof(ListTablesData) + 3) / 4; - char tname[MAX_TAB_NAME_SIZE]; + char tname[PATH_MAX]; SimplePropertiesSectionWriter tableDataWriter(getSectionSegmentPool()); SimplePropertiesSectionWriter tableNamesWriter(getSectionSegmentPool()); @@ -17051,7 +17051,7 @@ Dbdict::create_file_prepare_complete(Sig ndbrequire(false); } - char name[MAX_TAB_NAME_SIZE]; + char name[PATH_MAX]; ConstRope tmp(c_rope_pool, f_ptr.p->m_path); tmp.copy(name); LinearSectionPtr ptr[3];