ailabstw / go-pttai-core

:no_entry: [DEPRECATED] Current development in https://github.com/ailabstw/pttai-next
1 stars 1 forks source link

Dealing with the oplog in which update-ts < create-ts #14

Open chhsiao1981 opened 5 years ago

chhsiao1981 commented 5 years ago

Version information:

Gptt Version: 0.2.0 Git Commit: 769706df31c45ad4242da56e701b40ab954912ce Architecture: amd64 Go Version: go1.11.1 Operating System: linux

Type:

Enhancement

Description:

Currently we just filter out the oplog in which the update-ts < create-ts when we receive the data (in Verify). We should check the validity of the oplog before sending it to the neighbors.

  1. Specifically for the update-ts < create-ts: we should delete this oplog.
  2. We should ensure update-ts >= create-ts when setting update-ts.