[#1806] writecache: Allow to start flush manually
Allow user to initiate flushing objects from a writecache. We need this in 2 cases: 1. During writecache storage schema update, it should be flushed with the old version of node and started clean with a new one. 2. During SSD replacement, to avoid data loss. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
55148404ee
commit
0b4c867ef1
3 changed files with 206 additions and 0 deletions
|
@ -28,6 +28,7 @@ type Cache interface {
|
|||
SetMode(mode.Mode) error
|
||||
SetLogger(*zap.Logger)
|
||||
DumpInfo() Info
|
||||
Flush() error
|
||||
|
||||
Init() error
|
||||
Open(readOnly bool) error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue