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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
就上面这个代码 , 第一和第三个条件好理解,第二个条件理解不了
如果opMsg不空,并且最后也就是当前拉取的最后一条opMsg的bornTime距离事务开始时间已经过去transactionTimeout秒的话,那就发起回查. 可是我们之前只拉了max 32条op消息 , 有可能第33条就是所需的opMsg , 此时发起回查岂不是浪费了资源 . 难道不应该是判断整个opQueue此时此刻的最新消息么 , 为什么可以仅仅根据当前拉出来的32条就笃定没有所需opMsg,需要回查.
Beta Was this translation helpful? Give feedback.
All reactions