Skip to content

Commit fab2e16

Browse files
authored
PBM-1523 Fix exclude-slices merging (#1107)
1 parent 9f90639 commit fab2e16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pbm/snapshot/restore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ func NewRestore(uri string,
114114
"config.collections",
115115
"config.chunks",
116116
}
117-
nsExclude := make([]string, len(ExcludeFromRestore)+len(configColls))
117+
nsExclude = make([]string, len(ExcludeFromRestore)+len(configColls))
118118
n := copy(nsExclude, ExcludeFromRestore)
119-
copy(nsExclude[:n], configColls)
119+
copy(nsExclude[n:], configColls)
120120
}
121121

122122
mopts := mongorestore.Options{}

0 commit comments

Comments
 (0)