Skip to content
Permalink
Browse files

MariaRocks: SET GLOBAL rocksdb_strict_collation_exceptions=null crashes

A trivial fix
  • Loading branch information...
spetrunia committed Mar 17, 2017
1 parent 131d858 commit 619623b86234e768421476cdfa53a53796deb18d
Showing with 1 addition and 1 deletion.
  1. +1 −1 storage/rocksdb/ha_rocksdb.cc
@@ -10517,7 +10517,7 @@ void rocksdb_set_collation_exception_list(THD *const thd,
rdb_set_collation_exception_list(val == nullptr ? "" : val);

//psergey-todo: what is the purpose of the below??
const char *val_copy= my_strdup(val, MYF(0));
const char *val_copy= val? my_strdup(val, MYF(0)): nullptr;
my_free(*static_cast<char**>(var_ptr));
*static_cast<const char**>(var_ptr) = val_copy;
}

0 comments on commit 619623b

Please sign in to comment.
You can’t perform that action at this time.