Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
Signed-off-by: Kartikay <[email protected]>
  • Loading branch information
kartikaysaxena committed Jan 31, 2025
1 parent f95e9b0 commit 2d48920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added internal/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions internal/datastore/mysql/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (mds *Datastore) loadNamespaceChanges(ctx context.Context, afterRevision ui
return
}
}
if createdTxn > afterRevision && createdTxn <= newRevision {
if deletedTxn > afterRevision && deletedTxn <= newRevision {
if err = stagedChanges.AddDeletedNamespace(ctx, revisions.NewForTransactionID(deletedTxn), loaded.Name); err != nil {
return
}
Expand Down Expand Up @@ -400,7 +400,7 @@ func (mds *Datastore) loadCaveatChanges(ctx context.Context, afterRevision uint6
return
}
}
if createdTxn > afterRevision && createdTxn <= newRevision {
if deletedTxn > afterRevision && deletedTxn <= newRevision {
if err = stagedChanges.AddDeletedCaveat(ctx, revisions.NewForTransactionID(deletedTxn), loaded.Name); err != nil {
return
}
Expand Down

0 comments on commit 2d48920

Please sign in to comment.