0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 22:39:05 +00:00
Avinash Sajjanshetty d765413f5f
Refactor and update storage server proto (#1457)
* Update proto to send `max_frame_no` while inserting frames

We plan to allow multiple (non concurrent) writers. If a transaction's
`max_frame_no` does not match the server's `max_frame_no`, then it
has missed some new writes and we can abort the transaction

* Updates storage trait's insert_frames definition

- Change parameter type `FrameData` to `Frame` from rpc def, to
  avoid unnecessary copying
- Take `max_frame_no` param

* Use `insert_frames` method

* cleanup: remove `insert_frame` method and impl

* Remove `FrameData`, use `Frame` from proto instead
2024-06-10 07:33:53 +00:00
..