Skip to content

Commit

Permalink
[fix] Compatible with HKV asserting when init_capacity is smaller tha…
Browse files Browse the repository at this point in the history
…n max_bucket_size
  • Loading branch information
MoFHeka authored and rhdong committed Jun 27, 2024
1 parent 23cb79b commit 1e5aed9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.
#include <stdio.h>
#include <time.h>

#include <algorithm>
#include <limits>
#include <string>
#include <typeindex>
Expand Down Expand Up @@ -437,6 +438,8 @@ class TableWrapper {
dim_ = dim;
mkv_options_.init_capacity =
std::min(init_options.init_capacity, max_capacity_);
mkv_options_.init_capacity =
std::max(mkv_options_.init_capacity, mkv_options_.max_bucket_size);
mkv_options_.max_capacity = max_capacity_;
// Since currently GPU nodes are not compatible to fast
// pcie connections for D2H non-continous wirte, so just
Expand Down

0 comments on commit 1e5aed9

Please sign in to comment.