mirror of
https://github.com/octoleo/restic.git
synced 2024-11-05 12:57:53 +00:00
7a165f32a9
Backups traverse the file tree in depth-first order and saves trees on the way back up. This results in tree packs filled in a way comparable to the reverse Polish notation. In order to check tree blobs in that order, the treeFilter would have to delay the forwarding of tree nodes until all children of it are processed which would complicate the implementation. Therefore do the next similar thing and traverse the tree in depth-first order, but process trees already on the way down. The tree blob ids are added in reverse order to the backlog, which is once again reverted when removing the ids from the back of the backlog. |
||
---|---|---|
.. | ||
testdata | ||
checker_test.go | ||
checker.go | ||
testing.go |