txm: switch to normal mode earlier durion recovery with MVCC
Usually during final recovery, when .xlog files are loaded and applied, a special memtx_space_replace_primary_key function is used for faster recovery. The function only updates primary key while all other indexes are scheduled to build at the end of recovery. This approach doesn't work with MVCC engine and synchro spaces: When transactions appear in xlog and they may or may not be committed, we should process the in normal mode throught all indexes in order to leave transaction history in each index. Fixes #5610 Fixes #5973
Showing
- src/box/memtx_engine.c 1 addition, 1 deletionsrc/box/memtx_engine.c
- test/box/gh-5610-dirty-restart.lua 10 additions, 0 deletionstest/box/gh-5610-dirty-restart.lua
- test/box/gh-5610-dirty-restart.result 63 additions, 0 deletionstest/box/gh-5610-dirty-restart.result
- test/box/gh-5610-dirty-restart.test.lua 20 additions, 0 deletionstest/box/gh-5610-dirty-restart.test.lua
Loading
Please register or sign in to comment