List:Commits« Previous MessageNext Message »
From:tomas Date:February 8 2006 5:17pm
Subject:bk commit into 5.0 tree (tomas:1.2045) BUG#17235
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of tomas. When tomas 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
  1.2045 06/02/08 17:17:27 tomas@stripped +1 -0
  Bug #17235  	perror prints wrong prefix for ndb error codes

  extra/perror.c
    1.43 06/02/08 17:17:22 tomas@stripped +15 -1
    Bug #17235  	perror prints wrong prefix for ndb error codes

# 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:	tomas
# Host:	poseidon.ndb.mysql.com
# Root:	/home/tomas/mysql-5.0

--- 1.42/extra/perror.c	2005-10-03 20:04:24 +02:00
+++ 1.43/extra/perror.c	2006-02-08 17:17:22 +01:00
@@ -239,10 +239,24 @@
 	if ((ndb_error_string(code, ndb_string, sizeof(ndb_string)) < 0) &&
 	    (ndbd_exit_string(code, ndb_string, sizeof(ndb_string)) < 0))
 	{
-	    msg= 0;
+          msg= 0;
 	}
 	else
 	  msg= ndb_string;
+        if (msg)
+        {
+          if (verbose)
+            printf("NDB error code %3d: %s\n",code,msg);
+          else
+            puts(msg);
+        }
+        else
+        {
+	  fprintf(stderr,"Illegal ndb error code: %d\n",code);
+          error= 1;
+        }
+        found= 1;
+        msg= 0;
       }
       else 
 #endif
Thread
bk commit into 5.0 tree (tomas:1.2045) BUG#17235tomas8 Feb