From: Date: August 11 2006 12:47pm Subject: bk commit into 5.0 tree (lzhou:1.2244) BUG#21052 List-Archive: http://lists.mysql.com/commits/10306 X-Bug: 21052 Message-Id: <200608111047.k7BAlxNK030930@dev3-138.dev.cn.tlan> Below is the list of changes that have just been committed into a local 5.0 repository of root. When root does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2006-08-11 18:47:56+08:00, lzhou@stripped +3 -0 BUG#21052 Modify error message when backup is aborted ndb/src/mgmclient/CommandInterpreter.cpp@stripped, 2006-08-11 18:47:53+08:00, lzhou@stripped +1 -1 Modify error message when backup is aborted ndb/src/mgmsrv/Services.cpp@stripped, 2006-08-11 18:47:54+08:00, lzhou@stripped +8 -0 Append error message when error event occor ndb/src/ndbapi/ndberror.c@stripped, 2006-08-11 18:47:54+08:00, lzhou@stripped +1 -1 Modify error message # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: lzhou # Host: dev3-138.dev.cn.tlan # Root: /home/zhl/mysql/mysql-5.0/bug21052 --- 1.61/ndb/src/mgmclient/CommandInterpreter.cpp 2006-08-11 18:48:00 +08:00 +++ 1.62/ndb/src/mgmclient/CommandInterpreter.cpp 2006-08-11 18:48:00 +08:00 @@ -2138,7 +2138,7 @@ } if (result != 0) { - ndbout << "Start of backup failed" << endl; + ndbout << "Backup failed" << endl; printError(); #if 0 close(fd); --- 1.66/ndb/src/mgmsrv/Services.cpp 2006-08-11 18:48:00 +08:00 +++ 1.67/ndb/src/mgmsrv/Services.cpp 2006-08-11 18:48:00 +08:00 @@ -33,6 +33,7 @@ #include "../mgmapi/ndb_logevent.hpp" #include +#include extern bool g_StopServer; extern bool g_RestartServer; @@ -1309,6 +1310,7 @@ DBUG_VOID_RETURN; char m_text[256]; + char buf[256]; EventLogger::getText(m_text, sizeof(m_text), textF, theData, nodeId); @@ -1324,6 +1326,12 @@ if (ndb_logevent_body[i].index_fn) val= (*(ndb_logevent_body[i].index_fn))(val); str.appfmt("%s=%d\n",ndb_logevent_body[i].token, val); + if(strcmp(ndb_logevent_body[i].token,"error") == 0) + { + ndb_error_string(theData[3], buf, sizeof(buf)); + sprintf(m_text,"%s - %s",m_text,buf); + } + } Vector copy; --- 1.46/ndb/src/ndbapi/ndberror.c 2006-08-11 18:48:00 +08:00 +++ 1.47/ndb/src/ndbapi/ndberror.c 2006-08-11 18:48:00 +08:00 @@ -378,7 +378,7 @@ { 1305, IE, "Backup definition not implemented" }, { 1306, AE, "Backup not supported in diskless mode (change Diskless)" }, - { 1321, IE, "Backup aborted by application" }, + { 1321, UD, "Backup aborted by user request" }, { 1322, IE, "Backup already completed" }, { 1323, IE, "1323" }, { 1324, IE, "Backup log buffer full" },