replication: fill replicaset.applier.vclock after local recovery
replicaset.applier.vclock is initialized in replication_init(), which happens before local recovery. If some changes are come from an instance via replication the applier.vclock will be equal 0. This means that if some wild master will send this node already applied data, the node will apply the same data twice. Closes #6028
Showing
- src/box/applier.cc 5 additions, 0 deletionssrc/box/applier.cc
- src/box/box.cc 7 additions, 0 deletionssrc/box/box.cc
- src/lib/core/errinj.h 1 addition, 0 deletionssrc/lib/core/errinj.h
- test/box/errinj.result 1 addition, 0 deletionstest/box/errinj.result
- test/replication/gh-6028-replica.lua 13 additions, 0 deletionstest/replication/gh-6028-replica.lua
- test/replication/gh-6028-vclock-is-empty.result 60 additions, 0 deletionstest/replication/gh-6028-vclock-is-empty.result
- test/replication/gh-6028-vclock-is-empty.test.lua 24 additions, 0 deletionstest/replication/gh-6028-vclock-is-empty.test.lua
Loading
Please register or sign in to comment