diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-06-05 10:25:48 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-06-05 10:25:48 +0000 |
commit | 2b500f23e6c07a884063517986d89636e6c5466d (patch) | |
tree | 15cde1113a9bba127485460b5d079c4c41c569ae /searchcore/src/tests/proton/attribute/document_field_populator | |
parent | 10d9760f0bfb7b6b610caced5d1e64dc479e2a79 (diff) |
Keep document live during attribute population until attribute write threads
no longer uses fields retrieved from the document.
Diffstat (limited to 'searchcore/src/tests/proton/attribute/document_field_populator')
-rw-r--r-- | searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp b/searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp index 24de9d3bd47..a684f24f20d 100644 --- a/searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp +++ b/searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp @@ -71,8 +71,8 @@ TEST_F("require that document field is populated based on attribute content", Fi // NOTE: DocumentFieldRetriever (used by DocumentFieldPopulator) is fully tested // with all data types in searchcore/src/tests/proton/server/documentretriever_test.cpp. { - Document::UP doc = f._ctx.create(1); - f._pop.handleExisting(1, *doc); + std::shared_ptr<Document> doc = f._ctx.create(1); + f._pop.handleExisting(1, doc); EXPECT_EQUAL(100, doc->getValue("a1")->getAsInt()); } } |