Bug#25818 No return of NDB share object in failures in open method

- correct manual/auto merge to 5.1
parent 476a5496
...@@ -6292,9 +6292,9 @@ int ha_ndbcluster::open(const char *name, int mode, uint test_if_locked) ...@@ -6292,9 +6292,9 @@ int ha_ndbcluster::open(const char *name, int mode, uint test_if_locked)
} }
if (res) if (res)
{ {
free_share(m_share); free_share(&m_share);
m_share= 0; m_share= 0;
release_metadata(); release_metadata(current_thd, get_ndb());
DBUG_RETURN(res); DBUG_RETURN(res);
} }
#ifdef HAVE_NDB_BINLOG #ifdef HAVE_NDB_BINLOG
......
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