floyd
floyd copied to clipboard
多线程Write()支持
https://github.com/PikaLabs/floyd/blob/01a6979f4e20d6e0bb72c961a66ac40b39ecd4c7/floyd/src/floyd_impl.cc#L385-L391 这里是不是可以支持一下多线程写,像leveldb那样的多个写合并到一个中
we have support batch writes when we writing log entries and when apply the log entries to state machine
https://github.com/PikaLabs/floyd/blob/01a6979f4e20d6e0bb72c961a66ac40b39ecd4c7/floyd/src/floyd_impl.cc#L608-L618
I mean before writing to log, entries
at L618 will always contain only one item. I suppose we can merge multi threads' write operation into entries
.