summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-01-03 11:15:25 +0000
committerGeir Storli <geirst@yahooinc.com>2022-01-03 11:15:25 +0000
commit87586d49682a765b83cf3270e59d19bd995eb86a (patch)
treeb8e65b975909f0d5c0cbf526b2200be389fbc0da
parent2b75400bbde6241259afe75ae6d8ceb7a8a4eaf3 (diff)
Use zero as unused entry ref as that matches an invalid entry ref.
The previous value was within the range of valid entry refs and we could (very rarely) consider a set entry ref to not being set.
-rw-r--r--searchlib/src/vespa/searchlib/attribute/changevector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/changevector.h b/searchlib/src/vespa/searchlib/attribute/changevector.h
index 271497398a8..d929e8615a9 100644
--- a/searchlib/src/vespa/searchlib/attribute/changevector.h
+++ b/searchlib/src/vespa/searchlib/attribute/changevector.h
@@ -25,7 +25,7 @@ struct ChangeBase {
DIV,
CLEARDOC
};
- enum {UNSET_ENTRY_REF = 0xffffffffu};
+ enum {UNSET_ENTRY_REF = 0};
ChangeBase() :
_type(NOOP),