Fixed missed usages of longestCommonPrefixPartialKey
All checks were successful
Tests / Release [gcc] total: 471, passed: 471
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Reference build: <a href="https://jenkins.weaselab.dev/job/weaselab/job/conflict-set/job/main/34//gcc">weaselab » conflict-set » main #34</a>
Tests / Coverage total: 469, passed: 469
weaselab/conflict-set/pipeline/head This commit looks good
All checks were successful
Tests / Release [gcc] total: 471, passed: 471
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Reference build: <a href="https://jenkins.weaselab.dev/job/weaselab/job/conflict-set/job/main/34//gcc">weaselab » conflict-set » main #34</a>
Tests / Coverage total: 469, passed: 469
weaselab/conflict-set/pipeline/head This commit looks good
This commit is contained in:
@@ -828,7 +828,8 @@ bool checkPointRead(Node *n, const std::span<const uint8_t> key,
|
||||
|
||||
if (n->partialKeyLen > 0) {
|
||||
int commonLen = std::min<int>(n->partialKeyLen, remaining.size());
|
||||
int i = longestCommonPrefix(n->partialKey, remaining.data(), commonLen);
|
||||
int i = longestCommonPrefixPartialKey(n->partialKey, remaining.data(),
|
||||
commonLen);
|
||||
if (i < commonLen) {
|
||||
auto c = n->partialKey[i] <=> remaining[i];
|
||||
if (c > 0) {
|
||||
@@ -1088,7 +1089,8 @@ struct CheckRangeLeftSide {
|
||||
|
||||
if (n->partialKeyLen > 0) {
|
||||
int commonLen = std::min<int>(n->partialKeyLen, remaining.size());
|
||||
int i = longestCommonPrefix(n->partialKey, remaining.data(), commonLen);
|
||||
int i = longestCommonPrefixPartialKey(n->partialKey, remaining.data(),
|
||||
commonLen);
|
||||
searchPathLen += i;
|
||||
if (i < commonLen) {
|
||||
auto c = n->partialKey[i] <=> remaining[i];
|
||||
|
Reference in New Issue
Block a user