replication: move cluster id match check to replica
On replica subscribe master checks that replica's cluster id matches master's one, and disallows replication in case of mismatch. This behaviour blocks implementation of anonymous replicas, which shouldn't pollute _cluster space and could accumulate changes from multiple clusters at once. So let's move the check to replica to let it decide which action to take in case of mismatch. Needed for #3186 Closes #3704
Showing
- src/box/applier.cc 19 additions, 1 deletionsrc/box/applier.cc
- src/box/box.cc 9 additions, 13 deletionssrc/box/box.cc
- src/box/xrow.c 29 additions, 0 deletionssrc/box/xrow.c
- src/box/xrow.h 51 additions, 0 deletionssrc/box/xrow.h
- test/replication/misc.result 61 additions, 0 deletionstest/replication/misc.result
- test/replication/misc.test.lua 22 additions, 0 deletionstest/replication/misc.test.lua
Loading
Please register or sign in to comment