mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
introduced my_init() in backwards compatible Ndb constructor
This commit is contained in:
parent
6ae278a6bb
commit
bb044466a8
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
|
||||
|
||||
#include <ndb_global.h>
|
||||
#include <my_sys.h>
|
||||
|
||||
#include "NdbApiSignal.hpp"
|
||||
#include "NdbImpl.hpp"
|
||||
|
@ -61,6 +62,7 @@ Ndb::Ndb( const char* aDataBase , const char* aSchema) {
|
|||
if (global_ndb_cluster_connection == 0) {
|
||||
if (theNoOfNdbObjects > 0)
|
||||
abort(); // old and new Ndb constructor used mixed
|
||||
my_init();
|
||||
global_ndb_cluster_connection= new Ndb_cluster_connection(ndbConnectString);
|
||||
global_ndb_cluster_connection->connect();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue