Skip to content

Commit

Permalink
MariaRocks: SET GLOBAL rocksdb_strict_collation_exceptions=null crashes
Browse files Browse the repository at this point in the history
A trivial fix
  • Loading branch information
spetrunia committed Mar 17, 2017
1 parent 131d858 commit 619623b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/rocksdb/ha_rocksdb.cc
Expand Up @@ -10517,7 +10517,7 @@ void rocksdb_set_collation_exception_list(THD *const thd,
rdb_set_collation_exception_list(val == nullptr ? "" : val); rdb_set_collation_exception_list(val == nullptr ? "" : val);


//psergey-todo: what is the purpose of the below?? //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)); my_free(*static_cast<char**>(var_ptr));
*static_cast<const char**>(var_ptr) = val_copy; *static_cast<const char**>(var_ptr) = val_copy;
} }
Expand Down

0 comments on commit 619623b

Please sign in to comment.