mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
fix(compute): use proper safekeeper in VotesCollectedMset (#12175)
## Problem `VotesCollectedMset` uses the wrong safekeeper to update truncateLsn. This led to some failed assert later in the code during running safekeeper migration tests. - Relates to https://github.com/neondatabase/neon/issues/11823 ## Summary of changes Use proper safekeeper to update truncateLsn in VotesCollectedMset
This commit is contained in:
@@ -1135,7 +1135,7 @@ VotesCollectedMset(WalProposer *wp, MemberSet *mset, Safekeeper **msk, StringInf
|
|||||||
wp->propTermStartLsn = sk->voteResponse.flushLsn;
|
wp->propTermStartLsn = sk->voteResponse.flushLsn;
|
||||||
wp->donor = sk;
|
wp->donor = sk;
|
||||||
}
|
}
|
||||||
wp->truncateLsn = Max(wp->safekeeper[i].voteResponse.truncateLsn, wp->truncateLsn);
|
wp->truncateLsn = Max(sk->voteResponse.truncateLsn, wp->truncateLsn);
|
||||||
|
|
||||||
if (n_votes > 0)
|
if (n_votes > 0)
|
||||||
appendStringInfoString(s, ", ");
|
appendStringInfoString(s, ", ");
|
||||||
|
|||||||
Reference in New Issue
Block a user