Commit 0166e268 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3737], set curr_dsn when deserializing a header

git-svn-id: file:///svn/toku/tokudb@32902 c7de825b-a66e-492c-adef-691d508d4ae1
parent 77b34224
...@@ -1681,6 +1681,7 @@ deserialize_brtheader (int fd, struct rbuf *rb, struct brt_header **brth) { ...@@ -1681,6 +1681,7 @@ deserialize_brtheader (int fd, struct rbuf *rb, struct brt_header **brth) {
h->dirty=0; h->dirty=0;
h->panic = 0; h->panic = 0;
h->panic_string = 0; h->panic_string = 0;
h->curr_dsn = MIN_DSN+1;
toku_list_init(&h->live_brts); toku_list_init(&h->live_brts);
toku_list_init(&h->zombie_brts); toku_list_init(&h->zombie_brts);
toku_list_init(&h->checkpoint_before_commit_link); toku_list_init(&h->checkpoint_before_commit_link);
......
...@@ -149,6 +149,7 @@ toku_assert_entire_node_in_memory(BRTNODE node) { ...@@ -149,6 +149,7 @@ toku_assert_entire_node_in_memory(BRTNODE node) {
// //
static void static void
set_new_DSN_for_node(BRTNODE node, BRT t) { set_new_DSN_for_node(BRTNODE node, BRT t) {
assert(t->h->curr_dsn > MIN_DSN);
node->dsn = t->h->curr_dsn; node->dsn = t->h->curr_dsn;
t->h->curr_dsn++; t->h->curr_dsn++;
} }
......
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