Fix condition checking for erasing the root
All checks were successful
Tests / 64 bit versions total: 8331, passed: 8331
Tests / Debug total: 8329, passed: 8329
Tests / SIMD fallback total: 8331, passed: 8331
Tests / Release [clang] total: 8331, passed: 8331
Clang |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Tests / gcc total: 8331, passed: 8331
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Tests / Release [clang,aarch64] total: 5520, passed: 5520
Tests / Coverage total: 5571, passed: 5571
Code Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 97.75% (3081/3152)
* Branch Coverage: 41.81% (18261/43674)
* Complexity Density: 0.00
* Lines of Code: 3152
#### Quality Gates Summary
Output truncated.
weaselab/conflict-set/pipeline/head This commit looks good
All checks were successful
Tests / 64 bit versions total: 8331, passed: 8331
Tests / Debug total: 8329, passed: 8329
Tests / SIMD fallback total: 8331, passed: 8331
Tests / Release [clang] total: 8331, passed: 8331
Clang |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Tests / gcc total: 8331, passed: 8331
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Tests / Release [clang,aarch64] total: 5520, passed: 5520
Tests / Coverage total: 5571, passed: 5571
Code Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 97.75% (3081/3152)
* Branch Coverage: 41.81% (18261/43674)
* Complexity Density: 0.00
* Lines of Code: 3152
#### Quality Gates Summary
Output truncated.
weaselab/conflict-set/pipeline/head This commit looks good
This commit is contained in:
@@ -1885,10 +1885,9 @@ void downsize(Node *self, WriteContext *writeContext) {
|
|||||||
// Precondition: self is not the root. May invalidate nodes along the search
|
// Precondition: self is not the root. May invalidate nodes along the search
|
||||||
// path to self. May invalidate children of self->parent. Returns a pointer to
|
// path to self. May invalidate children of self->parent. Returns a pointer to
|
||||||
// the node after self. Precondition: `self->entryPresent`
|
// the node after self. Precondition: `self->entryPresent`
|
||||||
|
|
||||||
Node *erase(Node *self, WriteContext *writeContext, bool logical) {
|
Node *erase(Node *self, WriteContext *writeContext, bool logical) {
|
||||||
++writeContext->accum.entries_erased;
|
++writeContext->accum.entries_erased;
|
||||||
assert(self->parent != nullptr);
|
assert(self->parent->parent != nullptr);
|
||||||
|
|
||||||
#if DEBUG_VERBOSE && !defined(NDEBUG)
|
#if DEBUG_VERBOSE && !defined(NDEBUG)
|
||||||
fprintf(stderr, "Erase: %s\n", getSearchPathPrintable(self).c_str());
|
fprintf(stderr, "Erase: %s\n", getSearchPathPrintable(self).c_str());
|
||||||
|
Reference in New Issue
Block a user