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
I'm learning the source code of goleveldb. I find an issue about batch merge in db.Write func.
I want to know the design of batch, maybe my understanding is wrong.
this picture is about test case.
in Write func: db.writeMergeC <- writeMerge{sync: sync, batch: batch}:
in writeLocked func:
this two func is synchronous. if this case executes in Write func, this logic will block.
I think the logic of batch merge should be asynchronous
The text was updated successfully, but these errors were encountered:
I'm learning the source code of goleveldb. I find an issue about batch merge in db.Write func.
I want to know the design of batch, maybe my understanding is wrong.
this picture is about test case.
in Write func: db.writeMergeC <- writeMerge{sync: sync, batch: batch}:
in writeLocked func:
this two func is synchronous. if this case executes in Write func, this logic will block.
I think the logic of batch merge should be asynchronous
The text was updated successfully, but these errors were encountered: