storj/storagenode/storagenodedb
Moby von Briesen e115bc1903 cmd/storagenode;storagenode/storagenodedb: add preflight database check
for storagenode

Ensure that database schema matches latest test migration schema before
allowing the node to start up.

Ensure minimal read/write functionality for each storagenode database
before allowing the node to start up.

This will eliminate many unhandled audit errors we are seeing.

Change-Id: Ic0e628b04a9c35b7a8243f6a81d4683918170ba9
2020-01-16 18:44:46 +00: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 cmd/storagenode;storagenode/storagenodedb: add preflight database check 2020-01-16 18:44:46 +00: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 Revert "dbutil: statically require all databases accesses to use contexts" 2020-01-15 07:28:00 +00: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: fixes to row handling 2020-01-16 15:08:37 +00: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: fixes to row handling 2020-01-16 15:08:37 +00:00
usedserials.go storagenode/{piecestore,storagenodedb}: use context in queries 2020-01-14 20:27:26 +00:00