0
0
Fork 0

MB-22410 - Configurable forced Store Abort API

Adding a configurable forced store close
Bumping the moss store version
This commit is contained in:
Sreekanth Sivasankaran 2017-03-01 18:58:32 +05:30
parent 324e4237cf
commit ee819f5950
2 changed files with 2 additions and 3 deletions

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

2
vendor/manifest vendored
View File

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