mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-28 20:06:32 +00:00
fix: index snapshots incorrectly creates duplicate entries for snapshots from other instances (#693)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user