Add DeltaStore
commiteb7f6965d9fb9787f1a5a8bb3e1541ee58293bc6
authorJake Bailey <jakebailey@fb.com>
Thu, 19 May 2022 00:37:45 +0000 (18 17:37 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 19 May 2022 00:37:45 +0000 (18 17:37 -0700)
tree154ea23227a78d2decd8336da3de8a43a12b66c8
parent75951f6ba80b6553a22a34520be8418f9955d95d
Add DeltaStore

Summary: Add a store helper which maintains a mutable delta in front of a readonly data source. Will be used to model mutable hh_server sharedmem in front of the naming table DB. Differs from ChangesStore in that only one delta is maintained instead of a stack. I also intend to add write-through behavior to ChangesStore when the stack is empty, but DeltaStore will never write to the readonly fallback.

Reviewed By: shayne-fletcher

Differential Revision: D36465271

fbshipit-source-id: 801cde0daa7a174dc0915932bee513497d054e86
hphp/hack/src/rupro/datastore/datastore.rs
hphp/hack/src/rupro/datastore/delta_store.rs [new file with mode: 0644]