0
0

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:
Sreekanth Sivasankaran 2017-03-01 18:58:32 +05:30
parent 324e4237cf
commit 67a5814fbe

View File

@ -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})
}