summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/storeonlyfeedview
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-30 17:09:41 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-30 17:09:41 +0000
commit588e5d8e5bf4b9c9a3694e805fa889263c9cd6ff (patch)
treedd76f9f4881cebb84472437f21b4e04a8e84027f /searchcore/src/tests/proton/documentdb/storeonlyfeedview
parent7b57360527d407f6588d99d8bef2333243e83f21 (diff)
Use shared_ptr instead of reference.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/storeonlyfeedview')
-rw-r--r--searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp
index 5f033b1b73a..cc8b3a85f18 100644
--- a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp
@@ -86,17 +86,17 @@ struct MyMinimalFeedView : public MyMinimalFeedViewBase, public StoreOnlyFeedVie
const DocumentMetaStore::SP &metaStore,
searchcorespi::index::IThreadingService &writeService,
const PersistentParams &params,
- PendingLidTrackerBase & pendingLidsForCommit,
+ std::shared_ptr<PendingLidTrackerBase> pendingLidsForCommit,
int &outstandingMoveOps_) :
MyMinimalFeedViewBase(),
StoreOnlyFeedView(StoreOnlyFeedView::Context(summaryAdapter,
- search::index::Schema::SP(),
- std::make_shared<DocumentMetaStoreContext>(metaStore),
- *gidToLidChangeHandler,
+ search::index::Schema::SP(),
+ std::make_shared<DocumentMetaStoreContext>(metaStore),
myGetDocumentTypeRepo(),
+ std::move(pendingLidsForCommit),
+ *gidToLidChangeHandler,
writeService),
- params,
- pendingLidsForCommit),
+ params),
removeMultiAttributesCount(0),
removeMultiIndexFieldsCount(0),
heartBeatAttributesCount(0),
@@ -134,10 +134,10 @@ struct MoveOperationFeedView : public MyMinimalFeedView {
const DocumentMetaStore::SP &metaStore,
searchcorespi::index::IThreadingService &writeService,
const PersistentParams &params,
- PendingLidTrackerBase & pendingLidsForCommit,
+ std::shared_ptr<PendingLidTrackerBase> pendingLidsForCommit,
int &outstandingMoveOps_) :
MyMinimalFeedView(summaryAdapter, metaStore, writeService,
- params, pendingLidsForCommit, outstandingMoveOps_),
+ params, std::move(pendingLidsForCommit), outstandingMoveOps_),
putAttributesCount(0),
putIndexFieldsCount(0),
removeAttributesCount(0),
@@ -190,7 +190,7 @@ struct FixtureBase {
DocumentMetaStore::SP metaStore;
vespalib::ThreadStackExecutor sharedExecutor;
ExecutorThreadingService writeService;
- PendingLidTracker pendingLidsForCoomit;
+ std::shared_ptr<PendingLidTrackerBase> pendingLidsForCoomit;
typename FeedViewType::UP feedview;
SerialNum serial_num;
@@ -206,7 +206,7 @@ struct FixtureBase {
subDbType)),
sharedExecutor(1, 0x10000),
writeService(sharedExecutor),
- pendingLidsForCoomit(),
+ pendingLidsForCoomit(std::make_shared<PendingLidTracker>()),
feedview(),
serial_num(2u)
{