Skip to content

Commit

Permalink
Clang-Tidy: collections_seqno_advanced.cc
Browse files Browse the repository at this point in the history
Change-Id: I35be2e019416f02ec851833fa261be67cde42009
Reviewed-on: https://review.couchbase.org/c/kv_engine/+/169797
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
  • Loading branch information
rdemellow authored and daverigby committed Feb 2, 2022
1 parent 017aad8 commit 3a59517
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -133,19 +133,19 @@ class CollectionsSeqnoAdvanced
void setupOneOperation(InputType type, ForStream fs) {
switch (fs) {
case ForStream::Yes: {
queueOperation(seqno, type, myCollection);
queueOperation(currentSeqno, type, myCollection);
break;
}
case ForStream::No: {
queueOperation(seqno, type, CollectionEntry::vegetable);
queueOperation(currentSeqno, type, CollectionEntry::vegetable);
break;
}
}

switch (type) {
case InputType::Mutation:
case InputType::Prepare:
++seqno;
++currentSeqno;
break;
case InputType::CPEndStart:
case InputType::CPStart:
Expand Down Expand Up @@ -216,7 +216,7 @@ class CollectionsSeqnoAdvanced
}

// Starting seqno, each operation will increment this
uint64_t seqno{1};
uint64_t currentSeqno{1};

std::shared_ptr<MockDcpProducer> producer;
std::shared_ptr<MockActiveStream> stream;
Expand Down

0 comments on commit 3a59517

Please sign in to comment.