Make map
and map_with_path_builder
of sync version WALs returns a reader backed by unsync::Arena
#8
Labels
map
and map_with_path_builder
of sync version WALs returns a reader backed by unsync::Arena
#8
Suppose a sync version of
sync::OrderWal
is constructed bymap
ormap_with_path_builder
. In that case, there is no reason to userarena_allocator::sync::Arena
as the backend, becausemap
ormap_with_path_builder
means that theOrderWal
cannot be modified anymore so that no data race will happen anymore.Instance constructed by
map
ormap_with_path_builder
is not the same asreader
methods ofsync::OrderWal
.reader
let users create a read-only view on an active log, which means the writer can still modify the active log, so ararena_allocator::sync::Arena
is necessary for thread-safe.The text was updated successfully, but these errors were encountered: