summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-12-09 16:30:17 +0100
committerGitHub <noreply@github.com>2022-12-09 16:30:17 +0100
commit52288cca283f675435a74e1273a3eca165c2127d (patch)
tree22249606f79974c03153be829527ab43354ad0ca /storage
parentdfd30fb55d133a49d1528f67eb60e5a4a3184c2c (diff)
parent438129e8b3bf490226e19b6d9c09261024c126fd (diff)
Merge pull request #25199 from vespa-engine/vekterli/propagate-update-internal-doc-repo-to-auto-created-doc
Propagate doc repo in update to auto-created blank document instance [run-systemtest]
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/distributor/operations/external/twophaseupdateoperation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/distributor/operations/external/twophaseupdateoperation.cpp b/storage/src/vespa/storage/distributor/operations/external/twophaseupdateoperation.cpp
index 7c04636dc50..59f52465b93 100644
--- a/storage/src/vespa/storage/distributor/operations/external/twophaseupdateoperation.cpp
+++ b/storage/src/vespa/storage/distributor/operations/external/twophaseupdateoperation.cpp
@@ -674,7 +674,9 @@ std::shared_ptr<document::Document>
TwoPhaseUpdateOperation::createBlankDocument() const
{
const document::DocumentUpdate& up(*_updateCmd->getUpdate());
- return std::make_shared<document::Document>(up.getType(), up.getId());
+ auto doc = std::make_shared<document::Document>(up.getType(), up.getId());
+ doc->setRepo(*up.getRepoPtr());
+ return doc;
}
void