1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
Commit Graph

162 Commits

Author SHA1 Message Date
David Steele
0f94476a1f Changed buffer sizes. 2015-02-28 12:10:50 -05:00
David Steele
f6b9ab7326 Minor param fix. 2015-02-28 10:28:25 -05:00
David Steele
f93c6caec2 Backup/restore copy will be run in the main process when thread-max=1. I've resisted this change because it adds complexity, but I have to accept that threads are not stable on all platforms. Or maybe any platform. 2015-02-28 10:23:33 -05:00
David Steele
d6205d9501 Looks like all unit tests pass - now for a long test run to see if that is really true. And to see if the old lockup is gone. 2015-02-27 23:31:39 -05:00
David Steele
25442655c8 Hash of compressed file is working.
Something still broken in binary_xfer because some 0 length archive files are showing up.  Investigating.
2015-02-27 18:42:28 -05:00
David Steele
53f783d3fe binary_xfer compress/decompression working without threads. All unit tests passing. Hooray. 2015-02-27 16:36:40 -05:00
David Steele
c18c629878 Compress looks good, back to decompress. 2015-02-27 14:11:59 -05:00
David Steele
bd44b2c471 Making binary xfer more modular. 2015-02-27 13:48:29 -05:00
David Steele
2506bbb21a Working on decompression. 2015-02-26 19:12:22 -05:00
David Steele
64e1b1cea7 Simple compression case is working.
Still need to implement decompress, handle flags, and do checksum decompression.
2015-02-26 14:16:12 -05:00
David Steele
b9378d94a2 Working on removing threads from instream compress/decompression. 2015-02-26 09:22:05 -05:00
David Steele
d2602a5c07 Tracking down a lockup in the restore threads. It doesn't happen in backup - they are the same except that restore uses the ThreadGroup object. I'm beginning to think that threads and objects don't play together very nicely. Objects in threads seems OK, but threads in objects, not so much. 2015-02-03 20:33:33 -05:00
David Steele
d4aae88bec Try non-blocking dequeue in backup. 2015-02-02 20:11:32 -05:00
David Steele
d93b246a69 Empty restore queues in a non-blocking way. 2015-02-02 19:34:34 -05:00
David Steele
7f38461c68 Remove ThreadQueue->end(). Not supported on all platforms. 2015-02-02 18:48:33 -05:00
David Steele
bde8943517 Fixes to restore compare unit tests. 2015-02-02 18:33:11 -05:00
David Steele
a6d3b7e1a9 Working on checking restores against the manifest. Current issue is that the manifest does not always record the final size of the file - it may change while the file is being copied. This is fine in principal but makes testing a pain. 2015-01-31 23:04:24 -05:00
David Steele
018a2afaca Moved bNoStartStop tablespace mapping to Manifest object. 2015-01-31 18:23:37 -05:00
David Steele
d7b669d560 Moved manifest build to manifest object. 2015-01-31 18:15:08 -05:00
David Steele
267efbd71d Fixed restore::thread-max 2015-01-31 15:37:59 -05:00
David Steele
0c9da6a5ab Removed version file - redundant to the version in backup.manifest. 2015-01-31 15:06:53 -05:00
David Steele
e524c4dd1a Timeline unit tests are working.
Options from config file are being written to recovery.conf.
Fixed issue with .history files not being picked up by archive-xfer.
2015-01-31 13:48:09 -05:00
David Steele
cd9df8b4f8 Renamed uninit to cleanup. 2015-01-31 09:05:05 -05:00
David Steele
11c257296a In the end it was a single non-undefed reference holding up the show. The Backup file should be split into Archive, Backup, Expire, and made into objects. That would cut down on this kind of nastiness. 2015-01-30 20:16:21 -05:00
David Steele
50e015a838 Revert "Abortive attempt at cleaning up some thread issues - I realized the issue is in mixing threads and objects too liberally. Trying another approach but want to keep this code for historical and reference purposes."
This reverts commit e95631f82a.
2015-01-30 18:58:49 -05:00
David Steele
e95631f82a Abortive attempt at cleaning up some thread issues - I realized the issue is in mixing threads and objects too liberally. Trying another approach but want to keep this code for historical and reference purposes. 2015-01-30 14:55:55 -05:00
David Steele
499d6c8422 Added tests for all --delta --force combinations.
Added error check for postmaster running.
Added error check for path not empty.
2015-01-28 13:14:46 -05:00
David Steele
60550cd45b Archive async now works local, but there is a pending bug to make sure archive::path != backup::path.
Added code to be sure that restore will not try to log into the backup path unless it is local.
2015-01-28 00:28:21 -05:00
David Steele
b98b2df9f8 Fixed wait_for_file() so that it will not error if the path does not yet exist. 2015-01-28 00:26:20 -05:00
David Steele
a59bd8c328 Restores except for type=none are mostly working. There are some failing unit tests to fix. 2015-01-27 22:59:59 -05:00
David Steele
13544d51bf Recovery is working for none and default, but unit tests are not complete. 2015-01-27 11:44:23 -05:00
David Steele
f59aae101d Ready to start writing recovery unit tests. 2015-01-26 14:59:58 -05:00
David Steele
ac22c314a9 Working on plumbing for recovery options. 2015-01-26 11:01:24 -05:00
David Steele
eeffd62a12 Working on recovery options. 2015-01-25 17:27:46 -05:00
David Steele
6db49e1083 Cleaned up some time functions. 2015-01-25 12:20:12 -05:00
David Steele
e1c5f7f8ed Now able to check for specific errors in unit tests - as long as they are raised with an error code. 2015-01-23 18:28:39 -05:00
David Steele
21c715b25c Restore tablespace remaps are working. 2015-01-22 20:11:33 -05:00
David Steele
df4b50b977 Restore with base path remap working. 2015-01-22 19:04:55 -05:00
David Steele
82969eb497 Wrote some helper functions to make backup unit tests simpler.
Fixed an issue with checksum generation in resume.
2015-01-22 17:43:19 -05:00
David Steele
b53cb9f64e Unit tests for backup resume.
Improved warning message when a backup cannot be resumed.
2015-01-22 10:54:02 -05:00
David Steele
fc2838d60f All references to old-style manifest eliminated (hopefully). 2015-01-21 18:37:49 -05:00
David Steele
ade9ad78b4 Allow file keys to be validated on remove. 2015-01-21 13:57:58 -05:00
David Steele
ba7a939798 More migration to manifest object. 2015-01-21 10:44:08 -05:00
David Steele
a938813c01 More migration to manifest object. 2015-01-20 19:04:45 -05:00
David Steele
c33bc1e899 More migration to manifest object. 2015-01-20 18:00:03 -05:00
David Steele
26c568b7bc Manifest checksum failure shows expected value to allow manual fix - though not recommended. 2015-01-20 16:20:27 -05:00
David Steele
92c9ed8963 Added checksum to manifest to detect corruption. 2015-01-20 16:05:15 -05:00
David Steele
44fad1f4a4 Improvements to manifest save. 2015-01-20 14:42:22 -05:00
David Steele
8a7ee1bb1f Integration of new Manifest object. 2015-01-20 14:13:35 -05:00
David Steele
425e9485aa Re-added File-hash() - accidentally deleted it when working on owner(). 2015-01-08 16:36:45 -05:00