0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-02-28 10:11:31 +00:00
Commit Graph

117 Commits

Author SHA1 Message Date
b448906e65 add some more tracing 2024-08-20 14:39:03 +02:00
e09be05de6 force path style for s3 2024-08-20 14:39:03 +02:00
58c16e56ff remove useless function 2024-08-20 14:39:03 +02:00
63aec6fd74 ignore footer when comparing sqlite and libsql db files 2024-08-20 14:39:03 +02:00
2bcb04a33d implement Storage for Either 2024-08-20 14:39:02 +02:00
e35f877100 update Storage fn bounds 2024-08-20 14:39:02 +02:00
a24d4ec705 replicator: consume when returning stream 2024-08-20 14:39:02 +02:00
57b765ef82 injector: clear buffer after flushing frames 2024-08-20 14:39:02 +02:00
1bba54bcec return new_frame_notifier and log_id from shared_wal 2024-08-20 14:39:02 +02:00
aaddf60801 remove useless assertion
the replication index is now stored in the footer
2024-08-20 14:39:01 +02:00
ce0bd7a800 retry tx lock on shared wal shutdown on error 2024-08-20 14:39:01 +02:00
c1ebf3f772 un-erase config type 2024-08-20 14:39:01 +02:00
028a418f50 fix txn lock bugs and add more assertions 2024-08-20 14:39:00 +02:00
340fc51e86 downgrade txn on OwnedLockGuard drop 2024-08-20 14:39:00 +02:00
cc9ffd4709 fix replicator bug 2024-08-20 14:39:00 +02:00
cc45d05fbc compacted segment remap_file_type 2024-08-20 14:39:00 +02:00
97e6f970f2 Pass config overide as impl Clone instead of Arc<T>
to make things more composable
2024-08-20 14:39:00 +02:00
592fc3829e shutdown storage on registry shutdown 2024-08-20 14:39:00 +02:00
3a3500bce4 add destroy method to segment 2024-08-20 14:38:59 +02:00
ec4b2ebfd2 delete segment after checkpoint 2024-08-20 14:38:59 +02:00
4c9482a5c9 configurable max log size 2024-08-20 14:38:59 +02:00
48ebaafb28 add IO::remove_file_async 2024-08-20 14:38:59 +02:00
eb206add59 implement Io::uuid in terms of Io::thread_rng 2024-08-20 14:38:59 +02:00
0292e1e727 implement FileExt for Either 2024-08-20 14:38:59 +02:00
b92225775f read logid from db footer 2024-08-20 14:38:58 +02:00
5b694b8bdc return ShuttingDown error from registry instead of panic 2024-08-20 14:38:58 +02:00
e6939f886b fix checkpointer shutdown
the checkpointer was shutting down before finishing processing incoming
messages.
2024-08-20 14:38:58 +02:00
566664e9a0 fmt 2024-08-10 09:46:06 +02:00
4b5baacad5 introduce libsql injector 2024-08-10 09:45:36 +02:00
5924766712 write footer on checkpoint 2024-08-07 14:19:29 +02:00
07dc9b5b6d add LibsqlWalFooter 2024-08-07 13:04:09 +02:00
5dd8d0b3ac Merge pull request from tursodatabase/add-header-page-size
add page size to segment header
2024-08-01 08:48:43 +00:00
6f3a29d4c3 add page size to segment header 2024-08-01 10:29:04 +02:00
57efa9200f Merge pull request from tursodatabase/type-erase-override-config
type erase override config
2024-07-31 20:40:59 +00:00
c7184aed5f Merge pull request from tursodatabase/add-replicator-comment
add replicator comment
2024-07-31 20:40:26 +00:00
406f0fc394 fix typo
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2024-07-31 21:33:23 +02:00
231cc64897 add a few comments about replication 2024-07-31 18:03:27 +02:00
4f919174a2 type-erase config override 2024-07-31 17:55:31 +02:00
1fe3475f89 fix deadlock
not really related to that, but it started triggerring consistently
after I rebased

- there could be a race condition between a segment being sealed, stored
  and registered for checkpoint (the checkpointer could be notified
  before the segment was added to the tail)
  - the checkpointer would not be notifier when the last reader left the
    segment, so we would hang
- we could enter a busy loop when we got a notification for a namespace
  while there was still an in-flight job for that namespace, blocking
      the runtime.
2024-07-31 02:13:47 +02:00
13c0dc016f don't compute checksum if we need to recompute it later 2024-07-31 00:35:58 +02:00
92a10a1207 fmt 2024-07-31 00:35:57 +02:00
4b2ac5c1fe add debug assertion to verify checksum + fix failing tests 2024-07-31 00:35:07 +02:00
0542328b21 rename insert_frames to inject_frames 2024-07-31 00:34:29 +02:00
271364878a recompute checksum on frame overwrite 2024-07-31 00:34:28 +02:00
dcebba43d5 fix test 2024-07-31 00:34:28 +02:00
74f6bf6209 recover log on crash 2024-07-31 00:34:27 +02:00
c2f0eb73a9 patch crash_on_flush test 2024-07-31 00:33:42 +02:00
47ed09a2da compute current segment running checksum 2024-07-31 00:33:41 +02:00
d6b9e496b2 harden segment header 2024-07-31 00:32:33 +02:00
4de86da020 add with_rng to Io 2024-07-31 00:32:33 +02:00