triump2020
triump2020
Thanks!
@greensky00 thanks for your quick response ! BTW, in ebay, has there been any case in where jungle has been used as a wal-raft-log store ? we want to multiplex...
@greensky00 Got it , thanks!
虽然这个队列是single producer --single cosumer 的, 如果没加锁,可能还是有内存序/可见性的问题吧
我认为还是后面的epoll_ctl 和网络线程中的epoll_wait 起了作用吧.
epoll_ctl 对应了Realeas 语义, epoll_wait 对应了Acquire 语义, 所以当epoll_wait 返回后,能保证在epoll_ctl 之前对内存的修改可见,所以 ReqInfoQueue 这个队列就可以不用做任何处理 ; 否则 即使是最简单的 单生成者,单消费者队列,也要做相关的内存一致性模型的控制,才能保证data race free.
@rkarthik007 Have a plan or scheme to support pessimistic locking ?
https://github.com/matrixorigin/matrixone/pull/15545
https://github.com/matrixorigin/matrixone/pull/15948