Skip to content

Commit

Permalink
Merge branch 'neo'
Browse files Browse the repository at this point in the history
* neo:
  MB-51805: Pass persistedPrepareSeqno(maxPrepareSeqno) into VBucket

Change-Id: I19964bea884fcbd4dd94ea54830c17d40b60ac0c
  • Loading branch information
BenHuddleston committed Jun 7, 2022
2 parents cbedc2a + 4c7d312 commit b532ea1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion engines/ep/src/ep_bucket.cc
Expand Up @@ -1639,7 +1639,8 @@ VBucketPtr EPBucket::makeVBucket(
hlcEpochSeqno,
mightContainXattrs,
replicationTopology,
maxVisibleSeqno),
maxVisibleSeqno,
maxPrepareSeqno),
VBucket::DeferredDeleter(engine)};
}

Expand Down
6 changes: 4 additions & 2 deletions engines/ep/src/ep_vb.cc
Expand Up @@ -69,7 +69,8 @@ EPVBucket::EPVBucket(Vbid i,
int64_t hlcEpochSeqno,
bool mightContainXattrs,
const nlohmann::json* replicationTopology,
uint64_t maxVisibleSeqno)
uint64_t maxVisibleSeqno,
uint64_t maxPrepareSeqno)
: VBucket(i,
newState,
st,
Expand All @@ -95,7 +96,8 @@ EPVBucket::EPVBucket(Vbid i,
hlcEpochSeqno,
mightContainXattrs,
replicationTopology,
maxVisibleSeqno),
maxVisibleSeqno,
maxPrepareSeqno),
shard(kvshard),
rangeScans(bucket ? static_cast<EPBucket*>(bucket)->getReadyRangeScans()
: nullptr) {
Expand Down
3 changes: 2 additions & 1 deletion engines/ep/src/ep_vb.h
Expand Up @@ -53,7 +53,8 @@ class EPVBucket : public VBucket {
int64_t hlcEpochSeqno = HlcCasSeqnoUninitialised,
bool mightContainXattrs = false,
const nlohmann::json* replicationTopology = {},
uint64_t maxVisibleSeqno = 0);
uint64_t maxVisibleSeqno = 0,
uint64_t maxPrepareSeqno = 0);

~EPVBucket() override;

Expand Down
3 changes: 2 additions & 1 deletion engines/ep/src/vbucket.cc
Expand Up @@ -193,7 +193,8 @@ VBucket::VBucket(Vbid i,
int64_t hlcEpochSeqno,
bool mightContainXattrs,
const nlohmann::json* replTopology,
uint64_t maxVisibleSeqno)
uint64_t maxVisibleSeqno,
uint64_t maxPrepareSeqno)
: ht(st, std::move(valFact), config.getHtSize(), config.getHtLocks()),
failovers(std::move(table)),
opsCreate(0),
Expand Down
3 changes: 2 additions & 1 deletion engines/ep/src/vbucket.h
Expand Up @@ -194,7 +194,8 @@ class VBucket : public std::enable_shared_from_this<VBucket> {
int64_t hlcEpochSeqno = HlcCasSeqnoUninitialised,
bool mightContainXattrs = false,
const nlohmann::json* replTopology = {},
uint64_t maxVisibleSeqno = 0);
uint64_t maxVisibleSeqno = 0,
uint64_t maxPrepareSeqno = 0);

virtual ~VBucket();

Expand Down

0 comments on commit b532ea1

Please sign in to comment.