MB-22410:deleting/editing index definition with large dirty write queue can be very slow
Adding a configurable forced store close
This commit is contained in:
parent
324e4237cf
commit
67a5814fbe
|
@ -176,8 +176,7 @@ func New(mo store.MergeOperator, config map[string]interface{}) (
|
|||
|
||||
func (s *Store) Close() error {
|
||||
if v, ok := s.config["mossAbortCloseEnabled"]; ok && v.(bool) == true {
|
||||
msw, ok := s.llstore.(*mossStoreWrapper)
|
||||
if ok {
|
||||
if msw, ok := s.llstore.(*mossStoreWrapper); ok {
|
||||
if s := msw.Actual(); s != nil {
|
||||
s.CloseEx(moss.StoreCloseExOptions{Abort: true})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user