add .tmp suffix to transient db names

This commit is contained in:
vyzo 2021-08-03 11:26:32 +03:00
parent 26a5832f92
commit 1a59b73adc

View File

@ -48,6 +48,7 @@ func NewBadgerMarkSetEnv(path string) (MarkSetEnv, error) {
}
func (e *BadgerMarkSetEnv) create(name string, sizeHint int64) (*BadgerMarkSet, error) {
name += ".tmp"
path := filepath.Join(e.path, name)
db, err := openTransientBadgerDB(path)