Skip to content

Commit f4365a7

Browse files
authored
set min_key_ during bulkload (#23)
1 parent a6afa1e commit f4365a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/alex_nodes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,7 @@ class AlexDataNode : public AlexNode<T, P> {
12281228
static_cast<double>(num_keys + 1)),
12291229
static_cast<double>(data_capacity_));
12301230
contraction_threshold_ = data_capacity_ * kMinDensity_;
1231+
min_key_ = values[0].first;
12311232
max_key_ = values[num_keys - 1].first;
12321233
}
12331234

@@ -1328,6 +1329,7 @@ class AlexDataNode : public AlexNode<T, P> {
13281329
ALEX_DATA_NODE_KEY_AT(i) = kEndSentinel_;
13291330
}
13301331

1332+
min_key_ = node->min_key_;
13311333
max_key_ = node->max_key_;
13321334

13331335
expansion_threshold_ =

0 commit comments

Comments
 (0)