relay: refactor relay_initial_join
From now on during initial join memtx engine prepares vclock, raft and limbo states, it also sends them during memtx_engine_join. It's done in order to simplify the code of initial join, as in the consequent commit checkpoint initial join will be introduced and we want relay code to handle it the same as read-view join without confusing conditions. Needed for tarantool/tarantool-ee#741 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring (cherry picked from commit 72cc2b3e)
Showing
- src/box/engine.c 10 additions, 23 deletionssrc/box/engine.c
- src/box/engine.h 15 additions, 7 deletionssrc/box/engine.h
- src/box/memtx_engine.cc 78 additions, 9 deletionssrc/box/memtx_engine.cc
- src/box/relay.cc 7 additions, 50 deletionssrc/box/relay.cc
- src/box/vinyl.c 7 additions, 7 deletionssrc/box/vinyl.c
Loading
Please register or sign in to comment