summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-01-05 18:42:28 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-01-05 18:42:28 +0000
commit4ac1f8b58b187fc79660e7f65372e9f7a421b01d (patch)
tree3f6979d9719ff4a9732f8ac2bd04d26c83a8c007 /document
parent6382cb8513ab166e4e4184e0ddebd60f97fb6bb3 (diff)
Allow updates with only remove/clear updates and operations to single value numeric fields to pass
even when feed rejection is in effect. The rationale is that these updates will not affect memory or disk footprint negatively, but it can have a significant positive effect. Note that this will only be allowed for buckets that are in sync.
Diffstat (limited to 'document')
-rw-r--r--document/src/tests/fieldpathupdatetestcase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/tests/fieldpathupdatetestcase.cpp b/document/src/tests/fieldpathupdatetestcase.cpp
index 213ac2e5432..9f3ce4052d3 100644
--- a/document/src/tests/fieldpathupdatetestcase.cpp
+++ b/document/src/tests/fieldpathupdatetestcase.cpp
@@ -1045,7 +1045,7 @@ DocumentUpdate::UP
FieldPathUpdateTestCase::createDocumentUpdateForSerialization(const DocumentTypeRepo& repo)
{
const DocumentType *docType(repo.getDocumentType("serializetest"));
- DocumentUpdate::UP docUp(new DocumentUpdate(repo, *docType, DocumentId("id:ns:serializetest::xlanguage")));
+ auto docUp = std::make_unique<DocumentUpdate>(repo, *docType, DocumentId("id:ns:serializetest::xlanguage")));
FieldPathUpdate::CP assign(new AssignFieldPathUpdate("intfield", "", "3"));
static_cast<AssignFieldPathUpdate&>(*assign).setRemoveIfZero(true);