fix ndb_cache_multi2
util thread wasn't behaving correctly after 241 error due to get_table_statistics not properly returning an error code
This commit is contained in:
parent
8da80dd39d
commit
dc38d0249a
@ -5603,7 +5603,7 @@ uint ndb_get_commitcount(THD *thd, char *dbname, char *tabname,
|
|||||||
pthread_mutex_unlock(&share->mutex);
|
pthread_mutex_unlock(&share->mutex);
|
||||||
|
|
||||||
struct Ndb_statistics stat;
|
struct Ndb_statistics stat;
|
||||||
if (ndb_get_table_statistics(NULL, true, ndb, tabname, &stat))
|
if (ndb_get_table_statistics(NULL, false, ndb, tabname, &stat))
|
||||||
{
|
{
|
||||||
free_share(share);
|
free_share(share);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
@ -6044,6 +6044,9 @@ retry:
|
|||||||
reterr= ndb_to_mysql_error(&tmp);
|
reterr= ndb_to_mysql_error(&tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
reterr= error.code;
|
||||||
|
|
||||||
if (pTrans)
|
if (pTrans)
|
||||||
{
|
{
|
||||||
ndb->closeTransaction(pTrans);
|
ndb->closeTransaction(pTrans);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user