Commit e9225704 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5464 move partitioned_counters_init/destroy to portability

git-svn-id: file:///svn/toku/tokudb@48690 c7de825b-a66e-492c-adef-691d508d4ae1
parent dfc125a7
...@@ -5429,7 +5429,6 @@ int toku_ft_layer_init(void) { ...@@ -5429,7 +5429,6 @@ int toku_ft_layer_init(void) {
r = toku_portability_init(); r = toku_portability_init();
if (r) { goto exit; } if (r) { goto exit; }
partitioned_counters_init();
status_init(); status_init();
toku_checkpoint_init(); toku_checkpoint_init();
toku_ft_serialize_layer_init(); toku_ft_serialize_layer_init();
...@@ -5443,7 +5442,6 @@ void toku_ft_layer_destroy(void) { ...@@ -5443,7 +5442,6 @@ void toku_ft_layer_destroy(void) {
toku_ft_serialize_layer_destroy(); toku_ft_serialize_layer_destroy();
toku_checkpoint_destroy(); toku_checkpoint_destroy();
status_destroy(); status_destroy();
partitioned_counters_destroy();
//Portability must be cleaned up last //Portability must be cleaned up last
toku_portability_destroy(); toku_portability_destroy();
} }
......
...@@ -43,15 +43,18 @@ ...@@ -43,15 +43,18 @@
#include "toku_os.h" #include "toku_os.h"
#include "toku_time.h" #include "toku_time.h"
#include "memory.h" #include "memory.h"
#include "partitioned_counter.h"
int int
toku_portability_init(void) { toku_portability_init(void) {
int r = toku_memory_startup(); int r = toku_memory_startup();
partitioned_counters_init();
return r; return r;
} }
void void
toku_portability_destroy(void) { toku_portability_destroy(void) {
partitioned_counters_destroy();
toku_memory_shutdown(); toku_memory_shutdown();
} }
......
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