summaryrefslogtreecommitdiff
path: root/ft/ft.cc
diff options
context:
space:
mode:
authorLeif Walsh <leif@tokutek.com>2012-12-07 00:01:22 +0000
committerYoni Fogel <yoni@tokutek.com>2013-04-17 00:01:21 -0400
commit7ff640e046154a432ab549cad3412bfe895b928f (patch)
tree7e6597a4e1f8b450c69c31b67e1c9ab896ce697c /ft/ft.cc
parent0ecaed8724f2a5f107f61e526c61f432f0df8933 (diff)
downloadmariadb-git-7ff640e046154a432ab549cad3412bfe895b928f.tar.gz
closes #5757 merge information_schema.tokudb_fractal_tree_info and information_schema.tokudb_fractal_tree_block_map to main
git-svn-id: file:///svn/toku/tokudb@50863 c7de825b-a66e-492c-adef-691d508d4ae1
Diffstat (limited to 'ft/ft.cc')
-rw-r--r--ft/ft.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ft/ft.cc b/ft/ft.cc
index 36082db454c..bebf92c8b62 100644
--- a/ft/ft.cc
+++ b/ft/ft.cc
@@ -770,6 +770,16 @@ toku_ft_stat64 (FT ft, struct ftstat64_s *s) {
s->verify_time_sec = ft->h->time_of_last_verification;
}
+void
+toku_ft_get_fractal_tree_info64(FT ft, struct ftinfo64 *s) {
+ toku_blocktable_get_info64(ft->blocktable, s);
+}
+
+int toku_ft_iterate_fractal_tree_block_map(FT ft, int (*iter)(uint64_t,int64_t,int64_t,int64_t,int64_t,void*), void *iter_extra) {
+ uint64_t this_checkpoint_count = ft->h->checkpoint_count;
+ return toku_blocktable_iterate_translation_tables(ft->blocktable, this_checkpoint_count, iter, iter_extra);
+}
+
void
toku_ft_update_descriptor(FT ft, DESCRIPTOR d)
// Effect: Changes the descriptor in a tree (log the change, make sure it makes it to disk eventually).