summaryrefslogtreecommitdiff
path: root/sql/partition_info.h
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@oracle.com>2011-07-15 12:42:06 +0100
committerLuis Soares <luis.soares@oracle.com>2011-07-15 12:42:06 +0100
commitdbba17dad11764535d9cf98f635189c47afca98d (patch)
treec25cdf41def591bdb4b71275b1c94ce72bc64376 /sql/partition_info.h
parentce8077d8d37e37f4b007f64c5ca301d096699db8 (diff)
downloadmariadb-git-dbba17dad11764535d9cf98f635189c47afca98d.tar.gz
DBUG_PRINT in solaris does not work well with NULL parameters.
HA_ERR was returning 0 (null string) when no error happened (error=0). Since HA_ERR is used in DBUG_PRINT, regardless there was an error or not, the server could crash in solaris debug builds. We fix this by: - deploying an assertion that ensures that the function is not called when no error has happened; - making sure that HA_ERR is only called when an error happened; - making HA_ERR return "No Error", instead of 0, for non-debug builds if it is called when no error happened. This will make HA_ERR return values to work with DBUG_PRINT on solaris debug builds.
Diffstat (limited to 'sql/partition_info.h')
0 files changed, 0 insertions, 0 deletions