mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
DeleteEmptyContainer true by default now
This commit is contained in:
parent
4113a3d85b
commit
9c66cd5a81
3 changed files with 6 additions and 0 deletions
2
bolt.go
2
bolt.go
|
|
@ -183,6 +183,8 @@ func (r *boltRegistrar) OpenDBWrapper(path0 string, doAllocZero bool, rbfcfg *rb
|
|||
path: path,
|
||||
doAllocZero: doAllocZero,
|
||||
openTx: make(map[*BoltTx]bool),
|
||||
|
||||
DeleteEmptyContainer: true,
|
||||
}
|
||||
r.unprotectedRegister(w)
|
||||
|
||||
|
|
|
|||
2
lmdb.go
2
lmdb.go
|
|
@ -247,6 +247,8 @@ func (r *lmdbRegistrar) OpenDBWrapper(path0 string, doAllocZero bool, rbfcfg *rb
|
|||
dbi: dbi,
|
||||
doAllocZero: doAllocZero,
|
||||
openTx: make(map[*LMDBTx]bool),
|
||||
|
||||
DeleteEmptyContainer: true,
|
||||
}
|
||||
r.unprotectedRegister(w)
|
||||
|
||||
|
|
|
|||
|
|
@ -628,6 +628,8 @@ func (db *DB) begin(writable, exclusive bool) (_ *Tx, err error) {
|
|||
pageMap: db.pageMap,
|
||||
writable: writable,
|
||||
exclusive: exclusive,
|
||||
|
||||
DeleteEmptyContainer: true,
|
||||
}
|
||||
if writable {
|
||||
tx.wcache = db.wcache[:0]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue