Remove now-fixed shutdown hook of mapdb

We’ve had our own for a while now. Looks like their finally started
working which actually caused some issues (see last two commits).
This commit is contained in:
kageru 2019-11-06 07:39:22 +01:00
parent 1bc26951f7
commit 231b27176a
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -4,7 +4,7 @@ import org.mapdb.DBMaker
import org.mapdb.Serializer
object Dao {
private val db = DBMaker.fileDB("kagebot.db").checksumHeaderBypass().fileMmapEnable().transactionEnable().closeOnJvmShutdown().make()
private val db = DBMaker.fileDB("kagebot.db").fileMmapEnable().transactionEnable().make()
private val prisoners = db.hashMap("timeout", Serializer.LONG, Serializer.LONG_ARRAY).createOrOpen()
private val commands = db.hashMap("commands", Serializer.STRING, Serializer.INTEGER).createOrOpen()
private val tempVcs = db.hashSet("vcs", Serializer.STRING).createOrOpen()