Skip to content

Commit 773b8a7

Browse files
committed
Fix RS remapping in cluster cleanup phase
1 parent a833d3e commit 773b8a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pbm/restore/logical.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ func (r *Restore) dropShardedDBs(ctx context.Context, bcp *backup.BackupMeta) er
909909
// getDBsFromBackup returns all databases present in backup metadata file
910910
// for each replicaset.
911911
func (r *Restore) getDBsFromBackup(bcp *backup.BackupMeta) ([]string, error) {
912-
rsName := util.MakeRSMapFunc(r.rsMap)(r.brief.SetName)
912+
rsName := util.MakeReverseRSMapFunc(r.rsMap)(r.brief.SetName)
913913
filepath := path.Join(bcp.Name, rsName, archive.MetaFile)
914914
rdr, err := r.bcpStg.SourceReader(filepath)
915915
if err != nil {

0 commit comments

Comments
 (0)