Commit 2a4a15be authored by unknown's avatar unknown

ndb - bug#20708

  init ndb_cache_check_time and honor value in my.cnf


sql/ha_ndbcluster.cc:
  init ndb_cache_check_time and honor value in my.cnf
parent e80f6cc9
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
// options from from mysqld.cc // options from from mysqld.cc
extern my_bool opt_ndb_optimized_node_selection; extern my_bool opt_ndb_optimized_node_selection;
extern const char *opt_ndbcluster_connectstring; extern const char *opt_ndbcluster_connectstring;
extern ulong opt_ndb_cache_check_time;
// Default value for parallelism // Default value for parallelism
static const int parallelism= 0; static const int parallelism= 0;
...@@ -5210,6 +5211,7 @@ bool ndbcluster_init() ...@@ -5210,6 +5211,7 @@ bool ndbcluster_init()
pthread_cond_init(&COND_ndb_util_thread, NULL); pthread_cond_init(&COND_ndb_util_thread, NULL);
ndb_cache_check_time = opt_ndb_cache_check_time;
// Create utility thread // Create utility thread
pthread_t tmp; pthread_t tmp;
if (pthread_create(&tmp, &connection_attrib, ndb_util_thread_func, 0)) if (pthread_create(&tmp, &connection_attrib, ndb_util_thread_func, 0))
......
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