Commit 5dbaccb3 authored by calvin's avatar calvin

branches/zip:

HA_ERR_TOO_MANY_CONCURRENT_TRXS is added in 5.1.38.
But the plugin should still work with previous versions
of MySQL.
parent 534560bf
...@@ -873,17 +873,14 @@ convert_error_code_to_mysql( ...@@ -873,17 +873,14 @@ convert_error_code_to_mysql(
return(ER_PRIMARY_CANT_HAVE_NULL); return(ER_PRIMARY_CANT_HAVE_NULL);
case DB_TOO_MANY_CONCURRENT_TRXS: case DB_TOO_MANY_CONCURRENT_TRXS:
/* Once MySQL add the appropriate code to errmsg.txt then /* New error code HA_ERR_TOO_MANY_CONCURRENT_TRXS is only
we can get rid of this #ifdef. NOTE: The code checked by available in 5.1.38 and later, but the plugin should still
the #ifdef is the suggested name for the error condition work with previous versions of MySQL. */
and the actual error code name could very well be different. #ifdef HA_ERR_TOO_MANY_CONCURRENT_TRXS
This will require some monitoring, ie. the status return(HA_ERR_TOO_MANY_CONCURRENT_TRXS);
of this request on our part.*/ #else /* HA_ERR_TOO_MANY_CONCURRENT_TRXS */
#ifdef ER_TOO_MANY_CONCURRENT_TRXS
return(ER_TOO_MANY_CONCURRENT_TRXS);
#else
return(HA_ERR_RECORD_FILE_FULL); return(HA_ERR_RECORD_FILE_FULL);
#endif #endif /* HA_ERR_TOO_MANY_CONCURRENT_TRXS */
case DB_UNSUPPORTED: case DB_UNSUPPORTED:
return(HA_ERR_UNSUPPORTED); return(HA_ERR_UNSUPPORTED);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment