Commit d06d7363 authored by Rich Prohaska's avatar Rich Prohaska

#181 fix memory leak of the inserted bytes partitioned counter

parent dfe48725
...@@ -560,6 +560,11 @@ int tokudb_end(handlerton * hton, ha_panic_function type) { ...@@ -560,6 +560,11 @@ int tokudb_end(handlerton * hton, ha_panic_function type) {
db_env = NULL; db_env = NULL;
} }
if (tokudb_primary_key_bytes_inserted) {
destroy_partitioned_counter(tokudb_primary_key_bytes_inserted);
tokudb_primary_key_bytes_inserted = NULL;
}
// 3938: drop the initialized flag and unlock // 3938: drop the initialized flag and unlock
tokudb_hton_initialized = 0; tokudb_hton_initialized = 0;
rw_unlock(&tokudb_hton_initialized_lock); rw_unlock(&tokudb_hton_initialized_lock);
......
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