fix: index snapshots incorrectly creates duplicate entries for snapshots from other instances (#693)

This commit is contained in:
Gareth
2025-03-12 23:10:54 -07:00
committed by GitHub
parent be049b743d
commit 920d27ebc1
@@ -144,8 +144,7 @@ func indexCurrentSnapshotIdsForRepo(taskRunner TaskRunner, repoGUID string) (map
startTime := time.Now()
if err := taskRunner.QueryOperations(oplog.Query{}.
SetRepoGUID(repoGUID).
SetInstanceID(taskRunner.InstanceID()),
SetRepoGUID(repoGUID),
func(op *v1.Operation) error {
if snapshotOp, ok := op.Op.(*v1.Operation_OperationIndexSnapshot); ok {
if !snapshotOp.OperationIndexSnapshot.Forgot {