Rev 1436 | Rev 1461 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1436 | Rev 1437 | ||
---|---|---|---|
Line 1055... | Line 1055... | ||
1055 | * We hit the beginning of some used space. |
1055 | * We hit the beginning of some used space. |
1056 | */ |
1056 | */ |
1057 | return 0; |
1057 | return 0; |
1058 | } |
1058 | } |
1059 | 1059 | ||
- | 1060 | if (!leaf->keys) { |
|
- | 1061 | btree_insert(&a->used_space, page, (void *) count, leaf); |
|
- | 1062 | return 1; |
|
- | 1063 | } |
|
- | 1064 | ||
1060 | node = btree_leaf_node_left_neighbour(&a->used_space, leaf); |
1065 | node = btree_leaf_node_left_neighbour(&a->used_space, leaf); |
1061 | if (node) { |
1066 | if (node) { |
1062 | __address left_pg = node->key[node->keys - 1], right_pg = leaf->key[0]; |
1067 | __address left_pg = node->key[node->keys - 1], right_pg = leaf->key[0]; |
1063 | count_t left_cnt = (count_t) node->value[node->keys - 1], right_cnt = (count_t) leaf->value[0]; |
1068 | count_t left_cnt = (count_t) node->value[node->keys - 1], right_cnt = (count_t) leaf->value[0]; |
1064 | 1069 |