diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-10-21 10:37:13 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-10-21 10:48:47 +0000 |
commit | 54f5454cdb112e458aea3b5296199b7531f487d2 (patch) | |
tree | cf27d043d2c865e231c90a08784229881d54e9f8 /searchcore | |
parent | 9abe019606f2367b05e4e13d796de65dddf7c449 (diff) |
If the uncommitted changes pass 128k for an attribute force a commit.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp index 8069190ab17..26374ba1480 100644 --- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp +++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp @@ -151,6 +151,7 @@ applyPutToAttribute(SerialNum serialNum, const FieldValue::UP &fieldValue, Docum } else { attr.clearDoc(lid); } + attr.commitIfChangeVectorTooLarge(); } void @@ -184,6 +185,7 @@ applyUpdateToAttribute(SerialNum serialNum, const FieldUpdate &fieldUpd, { ensureLidSpace(serialNum, lid, attr); AttributeUpdater::handleUpdate(attr, lid, fieldUpd); + attr.commitIfChangeVectorTooLarge(); } void |