Skip to content

Commit

Permalink
Prevent the federate which doesn't have any upstream federates to adv…
Browse files Browse the repository at this point in the history
…ance its tag above stop requested tag
  • Loading branch information
byeonggiljun committed May 22, 2023
1 parent 6fcb90a commit 7dbdae1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/federation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,9 @@ export class FederatedApp extends App {
// Otherwise, set the tagBarrier using the greated TAG.
if (this.stopRequestInfo.state === StopRequestState.SENT) {
tagBarrier = this.stopRequestInfo.tag;
if (this.upstreamFedIDs.length === 0 && tagBarrier.isSmallerThan(nextEvent.tag)) {
return false;
}
} else {
tagBarrier = this._getGreatestTimeAdvanceGrant();
}
Expand Down

0 comments on commit 7dbdae1

Please sign in to comment.