Introduce blackhole engine
Blackhole is a very simple engine that allows to create spaces that may written to, but not read from. It only supports INSERT/REPLACE requests. It doesn't support any indexes hence SELECT is impossible. It does check space format though and supports on_replace and before_replace triggers. The whole purpose of this new engine is writing arbitrary rows to WAL without storing them anywhere. In particular, we need this engine to write deferred DELETEs generated for vinyl spaces to WAL. Needed for #2129
Showing
- src/box/CMakeLists.txt 1 addition, 0 deletionssrc/box/CMakeLists.txt
- src/box/blackhole.c 210 additions, 0 deletionssrc/box/blackhole.c
- src/box/blackhole.h 58 additions, 0 deletionssrc/box/blackhole.h
- src/box/box.cc 4 additions, 0 deletionssrc/box/box.cc
- test/box/blackhole.result 177 additions, 0 deletionstest/box/blackhole.result
- test/box/blackhole.test.lua 64 additions, 0 deletionstest/box/blackhole.test.lua
Loading
Please register or sign in to comment