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
Currently, users will need to manually call pin and unpin. If there are futures cancelled or somehow, it is possible that we fail to unpin by ourselves.
We should implement a struct called Version, and implement Drop for it. pin will return a Arc<Version> instead of some strange things. When a Version gets dropped (which means that all reference of Arc<Version> is now dropped), we can call unpin in Drop.
The text was updated successfully, but these errors were encountered:
risinglight/src/storage/secondary/version_manager.rs
Lines 258 to 263 in 7b5bc7a
Currently, users will need to manually call
pin
andunpin
. If there are futures cancelled or somehow, it is possible that we fail to unpin by ourselves.We should implement a struct called
Version
, and implementDrop
for it.pin
will return aArc<Version>
instead of some strange things. When aVersion
gets dropped (which means that all reference ofArc<Version>
is now dropped), we can callunpin
inDrop
.The text was updated successfully, but these errors were encountered: