aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-10-21 10:37:13 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-10-21 10:48:47 +0000
commit54f5454cdb112e458aea3b5296199b7531f487d2 (patch)
treecf27d043d2c865e231c90a08784229881d54e9f8 /searchcore
parent9abe019606f2367b05e4e13d796de65dddf7c449 (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.cpp2
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