git-hulk opened a new pull request, #1287: URL: https://github.com/apache/incubator-kvrocks/pull/1287
By default, the writes cannot be seen in transactions if the WriteBatch wasn't committed. To mitigate this issue, RocksDB offers the WriteBatchWithIndex to make the uncommitted writes visible if needed. For more information can see: https://rocksdb.org/blog/2015/02/27/write-batch-with-index.html This PR looks not easy to review at first glance, but it will be easier if review commits one by one: - The first commit adds the function `GetWriteBatch` in storage to wrap the WriteBatch for the write operations, making it possible to group and write all write operations at once in the EXEC command - The second commit supports using WriteBatchIndex in transaction mode so that those uncommitted writes can be seen in the same transaction - The third commit replaces the DB's Get and NewIterator API with WriteBatchIndex one -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
