this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix tuple order in page stack

garrison 5a4379d0 af49e5e4

+5 -3
+3 -1
lib/btree/fuzz/model_fuzz.ex
··· 39 39 40 40 # TODO: remove 41 41 :ok = BTree.Writer.apply_batch(state.btree, [{:write, "", ""}]) 42 + simple_kv = SimpleKV.apply_batch(state.simple_kv, [{:write, "", ""}]) 43 + state = %{state | simple_kv: simple_kv} 42 44 43 45 Enum.reduce(1..opts.iterations, state, fn iteration, state -> 44 46 try do ··· 90 92 } = state 91 93 92 94 start_key = make_key(opt_key_bits) 93 - count = Enum.random(1..10) 95 + count = Enum.random(1..100) 94 96 reverse? = Enum.random([true, false]) 95 97 #dbg {start_key, count, reverse?} 96 98 #dbg SimpleKV.dump(simple_kv), limit: :infinity
+2 -2
lib/btree/iterator.ex
··· 209 209 >> = current_page 210 210 211 211 it = %{it | 212 - page_stack: [{current_i, current_page} | it.page_stack], 212 + page_stack: [{current_page, current_i} | it.page_stack], 213 213 current_page: child_page, 214 214 current_i: child_pair_count, 215 215 current_pair: nil, ··· 263 263 child_page = inner_child_page_at(it.btree.page_store, current_page, pair_count, current_i) 264 264 265 265 it = %{it | 266 - page_stack: [{current_i, current_page} | it.page_stack], 266 + page_stack: [{current_page, current_i} | it.page_stack], 267 267 current_page: child_page, 268 268 current_i: -1, 269 269 current_pair: nil,