all repos — honk @ f634f633d722b60be4328f71d61d619a084a4696

my fork of honk

close blobdb here too
Ted Unangst tedu@tedunangst.com
Mon, 15 Jan 2024 23:56:48 -0500
commit

f634f633d722b60be4328f71d61d619a084a4696

parent

8d21266d9766e1672f662df8c97ac0fc11c53ca0

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M database.godatabase.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