close blobdb here too
Ted Unangst tedu@tedunangst.com
Mon, 15 Jan 2024 23:56:48 -0500
1 files changed,
4 insertions(+),
3 deletions(-)
jump to
M
database.go
→
database.go
@@ -1102,8 +1102,8 @@ doordie(db, "delete from zonkers where userid = ? and wherefore = 'zonvoy' and zonkerid < (select zonkerid from zonkers where userid = ? and wherefore = 'zonvoy' order by zonkerid desc limit 1 offset 200)", u.UserID, u.UserID)
} filexids := make(map[string]bool) - blobdb := openblobdb() - rows, err := blobdb.Query("select xid from filedata") + g_blobdb = openblobdb() + rows, err := g_blobdb.Query("select xid from filedata") if err != nil { elog.Fatal(err) }@@ -1126,7 +1126,7 @@ }
delete(filexids, xid) } rows.Close() - tx, err := blobdb.Begin() + tx, err := g_blobdb.Begin() if err != nil { elog.Fatal(err) }@@ -1140,6 +1140,7 @@ err = tx.Commit()
if err != nil { elog.Fatal(err) } + closedatabases() } var stmtHonkers, stmtDubbers, stmtNamedDubbers, stmtSaveHonker, stmtUpdateFlavor, stmtUpdateHonker *sql.Stmt