You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
To do anything with a logical page of data, we must first attempt to read/write lock the page, which will give back a ReadPageGuard or a WritePageGuard, depending on which mode we attempt to lock the page in.
(When we get to hybrid latches, there will also potentially be an optimistic read page guard, whatever that means...)
Right now, all you can do is dereference a page guard through Deref and DerefMut to access the underlying [u8] slice. While that is sufficient for most things, there are still methods that we should implement on these guards.
WritePageGuard:
Flush / Sync (write data out to disk)
Evict (flush and give up ownership of the underlying Frame)
Downgrade
ReadPageGuard:
Upgrade? (into a WritePageGuard)?
The text was updated successfully, but these errors were encountered:
To do anything with a logical page of data, we must first attempt to read/write lock the page, which will give back a
ReadPageGuard
or aWritePageGuard
, depending on which mode we attempt to lock the page in.(When we get to hybrid latches, there will also potentially be an optimistic read page guard, whatever that means...)
Right now, all you can do is dereference a page guard through
Deref
andDerefMut
to access the underlying[u8]
slice. While that is sufficient for most things, there are still methods that we should implement on these guards.WritePageGuard
:Frame
)ReadPageGuard
:WritePageGuard
)?The text was updated successfully, but these errors were encountered: