Skip to content

Commit

Permalink
Merge pull request apache#2018 from imaffe/affe-0520-fix-slotvalue
Browse files Browse the repository at this point in the history
[ISSUE apache#1807] only increase hashSlotCount when using slot for the first time
  • Loading branch information
RongtongJin authored May 25, 2020
2 parents b54681c + a14cf63 commit a8f7730
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ public boolean putKey(final String key, final long phyOffset, final long storeTi
this.indexHeader.setBeginTimestamp(storeTimestamp);
}

this.indexHeader.incHashSlotCount();
if (invalidIndex == slotValue) {
this.indexHeader.incHashSlotCount();
}
this.indexHeader.incIndexCount();
this.indexHeader.setEndPhyOffset(phyOffset);
this.indexHeader.setEndTimestamp(storeTimestamp);
Expand Down

0 comments on commit a8f7730

Please sign in to comment.