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
LevelDB internally supports both synchronous and asynchronous datastore writes (via the WriteOptions struct). However, to support our Datastore interface's definition of an asynchronous datastore we need to support the Sync(prefix ds.Key) function which syncs to disk, at least, all keys hierarchically under prefix.
As goleveldb only supports syncing the database during writes, and not at an arbitrary time, we haven't yet implemented this. While we could try to work around this limitation by synchronously writing to some preset key (as mentioned in #36 (comment)), it would be much cleaner and would have less edge cases if a Sync function were exposed by goleveldb.
If something like syndtr/goleveldb#310 was to be merged this would be a very straightforward fix.
The text was updated successfully, but these errors were encountered:
LevelDB internally supports both synchronous and asynchronous datastore writes (via the
WriteOptions
struct). However, to support our Datastore interface's definition of an asynchronous datastore we need to support theSync(prefix ds.Key)
function which syncs to disk, at least, all keys hierarchically underprefix
.As goleveldb only supports syncing the database during writes, and not at an arbitrary time, we haven't yet implemented this. While we could try to work around this limitation by synchronously writing to some preset key (as mentioned in #36 (comment)), it would be much cleaner and would have less edge cases if a Sync function were exposed by goleveldb.
If something like syndtr/goleveldb#310 was to be merged this would be a very straightforward fix.
The text was updated successfully, but these errors were encountered: