Commit graph

9 commits

Author SHA1 Message Date
Matthew Jaffee
b8b08bc9eb first cut at automatic snapshotting
- had to make sure we don't snapshot until directive is fully applied
on a computer... otherwise there's races between loading the files and
truncating the write log.

- added a dirty bit to resources and a bool return to incrementing the
write log... don't snapshot if it returns false because that means
there's been no writes. (but make sure you close the storage transaction!)

- added the actually snapshotting routine which just fires every
<timeout> and serially snapshots everything.

- tweaked some logging

- added ability to get all tables in an org/db or literally all. I
think I just needed the "literally all", but it was natural to allow
it to be scoped to org or DB as well.
2022-12-21 07:42:04 -06:00
Matthew Jaffee
033be81799 rename stupid manager names
ManagerManager -> ResourceManager
Manager -> Resource
2022-12-14 14:23:12 -06:00
Matthew Jaffee
cf1c9dae9a code review tweaks 2022-12-14 14:23:12 -06:00
Matthew Jaffee
bee666c07c fix dumb issue on storage manager test
changed empty snapshots/writelogs to return nil which was causing NPE
2022-12-14 14:23:12 -06:00
Matthew Jaffee
797b8bc31f fix lint 2022-12-14 14:23:12 -06:00
Matthew Jaffee
87d1c31607 several fixes and debug logging
- check that serverlessStorage is not nil before closing it
- check that we don't already hold a lock on a serverless storage
  Manager before trying to load it. This fixed at least one test failure.
2022-12-14 14:23:12 -06:00
Matthew Jaffee
dbb6d53f9d implement closing on dax, remove all locks when shutting down 2022-12-14 14:23:12 -06:00
Matthew Jaffee
bbaa7dd0f1 more WIP 2022-12-14 14:23:12 -06:00
Matthew Jaffee
35c472a54f extremely WIP 2022-12-14 14:23:12 -06:00