Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: fix a bug that auto repair may cause crash
The following sequence causes crash:
1. connection1: open indexes
2. connection2: open indexes
3. connection1: start operations log check and detects crash!
4. connection2: start operations log check and blocked.
5. connection1: finish auto repair by recreating indexes.
6. connection2: is unblocked and detects no crash but has opened indexes
that are recreated connection1.
7. connection2: use dropped index and is crashed.
TODO:
* The same problem exists in wrapper mode.
* Reduce lock scope. We can reduce lock scope by detecting "DISABLE
KEYS" mode without opening indexes.
[groonga-dev,03608]
Reported by Hiroshi Kagami. Thanks!!!- Loading branch information