storj/storagenode/storagenodedb
Egon Elbre 7bc76624cf storagenode/storagenodedb: fix closing in-use database
Migration step was closing a database that was used by
the migration itself. There is an active tranasction
over the database.

Instead of closing in the same transaction we can wait
until restart for the database cleanup.

Change-Id: Ic971d8cea81a3ab783f4a1bdc6357009c8b31386
2020-01-19 16:18:46 +02:00
..
storagenodedbtest storagenode/{piecestore,storagenodedb}: use context in queries 2020-01-14 20:27:26 +00:00
testdata private/dbutil/sqliteutil: add ctx argument 2020-01-13 15:03:30 +02:00
bandwidthdb.go storagenode/storagenodedb: fixes to row handling 2020-01-16 15:08:37 +00:00
database.go storagenode/storagenodedb: fix closing in-use database 2020-01-19 16:18:46 +02:00
db_container.go storagenodedb: reenable utccheck in tests 2019-12-10 23:17:14 +00:00
deprecatedinfo.go storagenodedb: reenable utccheck in tests 2019-12-10 23:17:14 +00:00
migrations_test.go cmd/storagenode;storagenode/storagenodedb: add preflight database check 2020-01-16 18:44:46 +00:00
notifications.go storagenode/storagenodedb: fixes to row handling 2020-01-16 15:08:37 +00:00
orders.go storagenode/storagenodedb: use tagsql 2020-01-19 14:39:16 +02:00
pieceexpiration.go storagenode/storagenodedb: fixes to row handling 2020-01-16 15:08:37 +00:00
pieceinfo.go storagenode/storagenodedb: fixes to row handling 2020-01-16 15:08:37 +00:00
piecespaceused.go storagenode/storagenodedb: fixes to row handling 2020-01-16 15:08:37 +00:00
reputation.go storagenode/storagenodedb: fixes to row handling 2020-01-16 15:08:37 +00:00
satellites.go storagenode/storagenodedb: use tagsql 2020-01-19 14:39:16 +02:00
schema.go cmd/storagenode;storagenode/storagenodedb: add preflight database check 2020-01-16 18:44:46 +00:00
schemagen.go cmd/storagenode;storagenode/storagenodedb: add preflight database check 2020-01-16 18:44:46 +00:00
storageusage.go storagenode/storagenodedb: use tagsql 2020-01-19 14:39:16 +02:00
usedserials.go storagenode/{piecestore,storagenodedb}: use context in queries 2020-01-14 20:27:26 +00:00