Commit Graph

356 Commits

Author SHA1 Message Date
Ben Johnson cff778464e Add 'databases' command. 2020-12-30 16:10:48 -07:00
Ben Johnson 11d7d22383 Add 'wal' command 2020-12-30 16:03:23 -07:00
Ben Johnson 8a7d8175fc Restrict generations command to single db 2020-12-30 15:44:21 -07:00
Ben Johnson ffc25e2654 Add 'snapshots' command. 2020-12-30 15:31:35 -07:00
Ben Johnson 5cc78fafa0 Clean shadow WAL 2020-12-30 14:48:58 -07:00
Ben Johnson 0b12efb135 Add checkpoint interval 2020-12-30 12:07:02 -07:00
Ben Johnson d4891f33da Refactor DB.checkpoint() to accept any mode.
This was originally meant to add a TRUNCATE checkpoint before starting
a new generation, however, there is a write lock that blocks the
checkpoint and it's more complicated to roll it back and attempt the
truncation.
2020-12-29 17:02:33 -07:00
Ben Johnson 42a33cccf4 Group WAL files in file replica 2020-12-29 16:40:28 -07:00
Ben Johnson ddf85f7150 Add release workflow v0.1.0 2020-12-29 13:44:58 -07:00
Ben Johnson e5ce22e895 Add CI unit tests 2020-12-29 13:29:08 -07:00
Ben Johnson 6f604e29b0 Fix unit tests. 2020-12-29 12:56:50 -07:00
Ben Johnson 41448ceb89 Rename replicator to replica 2020-12-29 12:49:23 -07:00
Ben Johnson 81e99c8035 Add 'restore' command. 2020-12-29 12:37:42 -07:00
Ben Johnson 44973dbbbc intermediate 2020-12-27 09:56:23 -07:00
Ben Johnson 98014f4e49 Add generations command 2020-12-26 09:39:21 -07:00
Ben Johnson 22d44fda6d Rename binary to litestream; add replicate command 2020-12-24 17:05:25 -07:00
Ben Johnson 89fd441e9a Remove tmp files on start up 2020-12-24 16:42:45 -07:00
Ben Johnson 87c8cea851 Verify replicator name uniqueness 2020-12-24 16:35:52 -07:00
Ben Johnson e8e4bffdb2 Hold read lock while snapshotting. 2020-12-24 16:32:48 -07:00
Ben Johnson 9fa526f2c3 File replicator snapshot 2020-12-24 15:41:45 -07:00
Ben Johnson 341eac268c Basic file replication working with WAL 2020-12-24 13:23:52 -07:00
Ben Johnson 8d7f5b28a9 Rename replicator config to replica 2020-12-23 16:02:38 -07:00
Ben Johnson 9fe52ce3f5 Fix rollover issue under load 2020-12-23 13:10:04 -07:00
Ben Johnson 5218a1f2c2 Add checkpoint seq no verification. 2020-12-23 11:15:10 -07:00
Ben Johnson 311f47fe98 Fix wal rollover 2020-12-22 16:56:23 -07:00
Ben Johnson 79d19e25e6 Clean up old generations on startup 2020-12-22 13:52:31 -07:00
Ben Johnson 6aceb5553e Rename daemon to litestreamd 2020-12-22 13:28:30 -07:00
Ben Johnson 2bbe5d91bf Add salt & checksum checking 2020-12-21 16:59:15 -07:00
Ben Johnson f4819efbeb Add checkpointing. 2020-12-20 08:01:47 -07:00
Ben Johnson a8387ed6f9 Add read lock 2020-12-19 08:56:44 -07:00
Ben Johnson a4e66eb8d8 Change config format to yaml; add replicators 2020-12-18 13:21:29 -07:00
Ben Johnson 85e97cd6ac db refactor 2020-12-17 16:32:10 -07:00
Ben Johnson b00095ccf5 Remove fuse 2020-12-17 15:15:01 -07:00
Ben Johnson bbcdb30cb3 Fix db lookup for wal file 2020-11-11 16:45:02 -07:00
Ben Johnson 231b41b29f Add real+shadow recovery 2020-11-11 16:35:10 -07:00
Ben Johnson b9e9bd93e8 Add recovery logging 2020-11-10 12:10:46 -07:00
Ben Johnson 2941a2433f Add recovery for 'real WAL only'. 2020-11-06 16:30:37 -07:00
Ben Johnson d964e4199a Validate sqlite header 2020-11-06 12:33:01 -07:00
Ben Johnson 9a2a30f239 GPL v3 2020-11-06 08:40:50 -07:00
Ben Johnson d68db48acc Remove POSIX lock handling 2020-11-05 13:41:32 -07:00
Ben Johnson e52d3be78d Fixing locking; unlock still not working 2020-11-03 16:35:58 -07:00
Ben Johnson b1ec5c721b Load dbs on startup 2020-11-03 14:50:16 -07:00
Ben Johnson bcc6963db6 Use hidden directory based on mount path 2020-11-03 12:21:13 -07:00
Ben Johnson 42f9ba9d1c doc 2020-11-03 12:02:13 -07:00
Ben Johnson d30f06b618 Implement Checksum() 2020-10-23 14:01:52 -06:00
Ben Johnson dc3da53c76 Add WALHeader & WALFrameHeader 2020-10-22 14:53:14 -06:00
Ben Johnson 8fa4727358 Refactor repo 2020-10-19 10:37:51 -06:00
Ben Johnson d001df823d Remove logging; fix Write() EIO error 2020-10-16 11:16:49 -06:00
Ben Johnson c6174296ec intermediate 2020-10-16 10:51:19 -06:00
Ben Johnson 40d368dec5 Implement Handle 2020-10-15 15:29:27 -06:00