DeleteEmptyContainer true by default now

This commit is contained in:
Jason E. Aten 2020-10-30 04:15:53 +00:00
parent 4113a3d85b
commit 9c66cd5a81
3 changed files with 6 additions and 0 deletions

View file

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

View file

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

View file

@ -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]