@@ -117,7 +117,7 @@ void DurabilityActiveStreamTest::testSendDcpPrepare() {
117117 EXPECT_EQ (value, (*it)->getValue ()->to_s ());
118118
119119 // We must have ckpt-start + Prepare
120- auto outstandingItemsResult = stream->public_getOutstandingItems (*vb );
120+ auto outstandingItemsResult = stream->public_getOutstandingItems ();
121121 ASSERT_EQ (2 , outstandingItemsResult.items .size ());
122122 ASSERT_EQ (queue_op::checkpoint_start,
123123 outstandingItemsResult.items .at (0 )->getOperation ());
@@ -273,7 +273,7 @@ void DurabilityActiveStreamTest::testSendCompleteSyncWrite(Resolution res) {
273273 }
274274
275275 // Fetch items via DCP stream.
276- auto outstandingItemsResult = stream->public_getOutstandingItems (*vb );
276+ auto outstandingItemsResult = stream->public_getOutstandingItems ();
277277 uint64_t expectedVisibleSeqno = 0 ;
278278 switch (res) {
279279 case Resolution::Commit:
@@ -839,7 +839,7 @@ TEST_P(DurabilityActiveStreamTest,
839839 }
840840 vb->notifyActiveDMOfLocalSyncWrite ();
841841
842- auto items = stream->getOutstandingItems (*vb );
842+ auto items = stream->getOutstandingItems ();
843843 stream->public_processItems (items);
844844 stream->consumeBackfillItems (*producer, 1 );
845845 stream->public_nextQueuedItem (*producer);
@@ -865,7 +865,7 @@ TEST_P(DurabilityActiveStreamTest,
865865 }
866866 vb->notifyActiveDMOfLocalSyncWrite ();
867867
868- items = stream->getOutstandingItems (*vb );
868+ items = stream->getOutstandingItems ();
869869 stream->public_processItems (items);
870870 stream->consumeBackfillItems (*producer, 3 );
871871 stream->public_nextQueuedItem (*producer);
@@ -4648,7 +4648,7 @@ void DurabilityPromotionStreamTest::testDiskCheckpointStreamedAsDiskSnapshot() {
46484648 // returns only items from contiguous checkpoints of the same type.
46494649 // Given that in CM we have checkpoints 1_Disk + 2_Memory, then the next
46504650 // returns only the entire 1_Disk.
4651- auto outItems = stream->public_getOutstandingItems (*vb );
4651+ auto outItems = stream->public_getOutstandingItems ();
46524652 ASSERT_EQ (4 , outItems.items .size ());
46534653 ASSERT_EQ (queue_op::checkpoint_start, outItems.items .at (0 )->getOperation ());
46544654 ASSERT_EQ (queue_op::pending_sync_write,
@@ -4691,7 +4691,7 @@ void DurabilityPromotionStreamTest::testDiskCheckpointStreamedAsDiskSnapshot() {
46914691
46924692 // Simulate running the checkpoint processor task again, now we process
46934693 // the second and the third checkpoints (both type:memory)
4694- outItems = stream->public_getOutstandingItems (*vb );
4694+ outItems = stream->public_getOutstandingItems ();
46954695 ASSERT_EQ (7 , outItems.items .size ());
46964696 ASSERT_EQ (queue_op::checkpoint_start, outItems.items .at (0 )->getOperation ());
46974697 // set_vbucket_state is from changing to active in the middle of this test
@@ -4894,7 +4894,7 @@ void DurabilityPromotionStreamTest::
48944894 // First CheckpointProcessorTask run
48954895 // Get items from CM, expect Memory{M:1}:
48964896 // ckpt-start + M:1 + ckpt-end
4897- auto outItems = activeStream->public_getOutstandingItems (*vb );
4897+ auto outItems = activeStream->public_getOutstandingItems ();
48984898 ASSERT_EQ (3 , outItems.items .size ());
48994899 ASSERT_EQ (queue_op::checkpoint_start, outItems.items .at (0 )->getOperation ());
49004900 ASSERT_EQ (queue_op::mutation, outItems.items .at (1 )->getOperation ());
@@ -4927,7 +4927,7 @@ void DurabilityPromotionStreamTest::
49274927 //
49284928 // !! NOTE: This is the important part of the test !!
49294929 // Before this patch we do not get any ckpt-start from CM
4930- outItems = activeStream->public_getOutstandingItems (*vb );
4930+ outItems = activeStream->public_getOutstandingItems ();
49314931 ASSERT_EQ (4 , outItems.items .size ());
49324932 ASSERT_EQ (queue_op::checkpoint_start, outItems.items .at (0 )->getOperation ());
49334933 ASSERT_EQ (queue_op::pending_sync_write,
@@ -4975,7 +4975,7 @@ void DurabilityPromotionStreamTest::
49754975 // Third CheckpointProcessorTask run
49764976 // Get items from CM, expect Memory{set-vbs:4, M:4}:
49774977 // ckpt-start + set-vbs:4 + M:4 + ckpt-end
4978- outItems = activeStream->public_getOutstandingItems (*vb );
4978+ outItems = activeStream->public_getOutstandingItems ();
49794979 ASSERT_EQ (3 , outItems.items .size ());
49804980 ASSERT_EQ (queue_op::checkpoint_start, outItems.items .at (0 )->getOperation ());
49814981 ASSERT_EQ (queue_op::set_vbucket_state,
@@ -5121,7 +5121,7 @@ void DurabilityPromotionStreamTest::
51215121 // CheckpointProcessorTask runs
51225122 // Get items from CM, expect Disk{PRE:1, M:2}:
51235123 // {CS, PRE:1, M:2, CE}
5124- auto outItems = activeStream->public_getOutstandingItems (*vb );
5124+ auto outItems = activeStream->public_getOutstandingItems ();
51255125 ASSERT_EQ (4 , outItems.items .size ());
51265126
51275127 ASSERT_EQ (queue_op::checkpoint_start, outItems.items .at (0 )->getOperation ());
@@ -5160,7 +5160,7 @@ void DurabilityPromotionStreamTest::
51605160 // CheckpointProcessorTask runs again
51615161 // Get items from CM, expect Disk{PRE:3, M:4}:
51625162 // {CS, PRE:3, M:4, CE}
5163- outItems = activeStream->public_getOutstandingItems (*vb );
5163+ outItems = activeStream->public_getOutstandingItems ();
51645164 ASSERT_EQ (4 , outItems.items .size ());
51655165
51665166 ASSERT_EQ (queue_op::checkpoint_start, outItems.items .at (0 )->getOperation ());
@@ -5298,7 +5298,7 @@ TEST_P(DurabilityPromotionStreamTest,
52985298 // Get items from CM, expect Disk{M:1} as only one Disk checkpoint can be
52995299 // retrieved at a time
53005300 auto vb = store->getVBucket (vbid);
5301- auto outItems = activeStream->public_getOutstandingItems (*vb );
5301+ auto outItems = activeStream->public_getOutstandingItems ();
53025302
53035303 // Push items into the Stream::readyQ
53045304 activeStream->public_processItems (outItems);
@@ -5321,7 +5321,7 @@ TEST_P(DurabilityPromotionStreamTest,
53215321
53225322 // CheckpointProcessorTask runs
53235323 // Get items from CM, expect Disk{A:3}
5324- outItems = activeStream->public_getOutstandingItems (*vb );
5324+ outItems = activeStream->public_getOutstandingItems ();
53255325 activeStream->public_processItems (outItems);
53265326
53275327 // 7)
@@ -5425,7 +5425,7 @@ TEST_P(DurabilityPromotionStreamTest,
54255425 // Get items from CM, expect Disk{M:1} as only one Disk checkpoint can be
54265426 // retrieved at a time
54275427 auto vb = store->getVBucket (vbid);
5428- auto outItems = activeStream->public_getOutstandingItems (*vb );
5428+ auto outItems = activeStream->public_getOutstandingItems ();
54295429
54305430 // Push items into the Stream::readyQ
54315431 activeStream->public_processItems (outItems);
@@ -5449,7 +5449,7 @@ TEST_P(DurabilityPromotionStreamTest,
54495449
54505450 // CheckpointProcessorTask runs
54515451 // Get items from CM, expect Disk{A:3}
5452- outItems = activeStream->public_getOutstandingItems (*vb );
5452+ outItems = activeStream->public_getOutstandingItems ();
54535453 activeStream->public_processItems (outItems);
54545454
54555455 // 7)
@@ -5516,7 +5516,7 @@ TEST_P(DurabilityPromotionStreamTest, ReplicaDeadActiveCanCommitPrepare) {
55165516
55175517 // Push items into the Stream::readyQ
55185518 auto vb = store->getVBucket (vbid);
5519- auto outItems = activeStream->public_getOutstandingItems (*vb );
5519+ auto outItems = activeStream->public_getOutstandingItems ();
55205520 activeStream->public_processItems (outItems);
55215521
55225522 // readyQ also contains SnapshotMarker
@@ -5540,7 +5540,7 @@ TEST_P(DurabilityPromotionStreamTest, ReplicaDeadActiveCanCommitPrepare) {
55405540 flushVBucketToDiskIfPersistent (vbid, 1 );
55415541
55425542 // Push items into the Stream::readyQ
5543- outItems = activeStream->public_getOutstandingItems (*vb );
5543+ outItems = activeStream->public_getOutstandingItems ();
55445544 activeStream->public_processItems (outItems);
55455545
55465546 resp = activeStream->public_nextQueuedItem (*producer);
@@ -6057,7 +6057,7 @@ TEST_P(DurabilityActiveStreamTest, inMemoryMultipleMarkers) {
60576057
60586058 // We should get items from two checkpoints which will make processItems
60596059 // generate two markers
6060- auto items = stream->public_getOutstandingItems (*vb );
6060+ auto items = stream->public_getOutstandingItems ();
60616061 stream->public_processItems (items);
60626062
60636063 // marker, prepare, marker, mutation, prepare
0 commit comments