Refactor Restore()
This commit refactors out the complexity of downloading ordered WAL files in parallel to a type called `WALDownloader`. This makes it easier to test the restore separately from the download.
This commit is contained in:
0
testdata/find-latest-generation/no-generations/.gitignore
vendored
Normal file
0
testdata/find-latest-generation/no-generations/.gitignore
vendored
Normal file
7
testdata/find-latest-generation/ok/Makefile
vendored
Normal file
7
testdata/find-latest-generation/ok/Makefile
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
.PHONY: default
|
||||
default:
|
||||
TZ=UTC touch -t 200001010000 generations/0000000000000000/snapshots/00000000.snapshot.lz4
|
||||
TZ=UTC touch -t 200001020000 generations/0000000000000000/snapshots/00000001.snapshot.lz4
|
||||
TZ=UTC touch -t 200001010000 generations/0000000000000001/snapshots/00000000.snapshot.lz4
|
||||
TZ=UTC touch -t 200001030000 generations/0000000000000001/snapshots/00000001.snapshot.lz4
|
||||
TZ=UTC touch -t 200001010000 generations/0000000000000002/snapshots/00000000.snapshot.lz4
|
||||
BIN
testdata/find-latest-generation/ok/generations/0000000000000000/snapshots/00000000.snapshot.lz4
vendored
Normal file
BIN
testdata/find-latest-generation/ok/generations/0000000000000000/snapshots/00000000.snapshot.lz4
vendored
Normal file
Binary file not shown.
BIN
testdata/find-latest-generation/ok/generations/0000000000000000/snapshots/00000001.snapshot.lz4
vendored
Normal file
BIN
testdata/find-latest-generation/ok/generations/0000000000000000/snapshots/00000001.snapshot.lz4
vendored
Normal file
Binary file not shown.
BIN
testdata/find-latest-generation/ok/generations/0000000000000001/snapshots/00000000.snapshot.lz4
vendored
Normal file
BIN
testdata/find-latest-generation/ok/generations/0000000000000001/snapshots/00000000.snapshot.lz4
vendored
Normal file
Binary file not shown.
BIN
testdata/find-latest-generation/ok/generations/0000000000000001/snapshots/00000001.snapshot.lz4
vendored
Normal file
BIN
testdata/find-latest-generation/ok/generations/0000000000000001/snapshots/00000001.snapshot.lz4
vendored
Normal file
Binary file not shown.
BIN
testdata/find-latest-generation/ok/generations/0000000000000002/snapshots/00000000.snapshot.lz4
vendored
Normal file
BIN
testdata/find-latest-generation/ok/generations/0000000000000002/snapshots/00000000.snapshot.lz4
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user