diff options
author | unknown <Justin.He/justin.he@dev3-47.dev.cn.tlan> | 2006-11-14 09:56:30 +0800 |
---|---|---|
committer | unknown <Justin.He/justin.he@dev3-47.dev.cn.tlan> | 2006-11-14 09:56:30 +0800 |
commit | c823c4fa771b0ea9fb10ed45781aef6fe57f68db (patch) | |
tree | 8b2191d7aa80d1e4a73afc87ea3d10708be9e1c0 /storage | |
parent | a47ee8676e08aa3e71626c7b42e5be503de0866d (diff) | |
parent | 89d83739eef2d4b936467e6904a1801080b44cde (diff) | |
download | mariadb-git-c823c4fa771b0ea9fb10ed45781aef6fe57f68db.tar.gz |
Merge dev3-47.dev.cn.tlan:/mnt/sda7/justin.he/mysql/mysql-5.1/mysql-5.1-new-ndb-bj
into dev3-47.dev.cn.tlan:/mnt/sda7/justin.he/mysql/mysql-5.1/bug19203-5.1-new-ndb-bj
Diffstat (limited to 'storage')
-rw-r--r-- | storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp b/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp index a7865c356c8..a60144b5e50 100644 --- a/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp +++ b/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp @@ -3249,8 +3249,20 @@ Dbdict::restartCreateTab_dihComplete(Signal* signal, CreateTableRecordPtr createTabPtr; ndbrequire(c_opCreateTable.find(createTabPtr, callbackData)); - //@todo check error - ndbrequire(createTabPtr.p->m_errorCode == 0); + fprintf(stderr,"Dbdict:restartCreateTab_dihComplete:, errorCode=%d\n", createTabPtr.p->m_errorCode); + if (createTabPtr.p->m_errorCode != 0) + { + char buf[255]; + BaseString::snprintf(buf, sizeof(buf), + "Unable to restart, fail while creating table" + " error: %d. Most likely change of configuration", + createTabPtr.p->m_errorCode); + progError(__LINE__, + NDBD_EXIT_INVALID_CONFIG, + buf); + ndbrequire(createTabPtr.p->m_errorCode == 0); + } + Callback callback; callback.m_callbackData = callbackData; |