Commit 0b72d47c authored by Rich Prohaska's avatar Rich Prohaska

#272 set TokuDB product name

parent ec2641f7
......@@ -320,6 +320,9 @@ static void handle_ydb_error(int error) {
sql_print_error(" ");
sql_print_error("************************************************************");
break;
default:
sql_print_error("%s unknown error %d", tokudb_hton_name, error);
break;
}
}
......@@ -410,6 +413,12 @@ static int tokudb_init_func(void *p) {
tokudb_home = mysql_real_data_home;
DBUG_PRINT("info", ("tokudb_home: %s", tokudb_home));
r = db_env_set_toku_product_name(tokudb_hton_name);
if (r) {
sql_print_error("%s can not set product name error %d", tokudb_hton_name, r);
goto error;
}
if ((r = db_env_create(&db_env, 0))) {
DBUG_PRINT("info", ("db_env_create %d\n", r));
handle_ydb_error(r);
......
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