MB-22410 - Configurable forced Store Abort API
Adding a configurable forced store close Bumping the moss store version
This commit is contained in:
parent
324e4237cf
commit
ee819f5950
|
@ -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})
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"importpath": "github.com/couchbase/moss",
|
||||
"repository": "https://github.com/couchbase/moss",
|
||||
"vcs": "git",
|
||||
"revision": "564b451e917875e4c580cd4a14a6bbb44a1faf7e",
|
||||
"revision": "fc637b3f82ec5b8139b0d295f6588c6a2bea5a16",
|
||||
"branch": "master",
|
||||
"notests": true
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue