diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-12-09 16:30:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 16:30:17 +0100 |
commit | 52288cca283f675435a74e1273a3eca165c2127d (patch) | |
tree | 22249606f79974c03153be829527ab43354ad0ca /storage | |
parent | dfd30fb55d133a49d1528f67eb60e5a4a3184c2c (diff) | |
parent | 438129e8b3bf490226e19b6d9c09261024c126fd (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.cpp | 4 |
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 |