mirror of
https://github.com/octoleo/restic.git
synced 2025-02-02 11:58:26 +00:00
Merge pull request #514 from viric/fix_parent_search
Better backup parent snapshot search. Part of #513
This commit is contained in:
commit
cb75737770
@ -180,11 +180,15 @@ func samePaths(expected, actual []string) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(expected) != len(actual) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
for i := range expected {
|
for i := range expected {
|
||||||
if expected[i] != actual[i] {
|
found := false
|
||||||
|
for j := range actual {
|
||||||
|
if expected[i] == actual[j] {
|
||||||
|
found = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if !found {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user