storj/storagenode/storagenodedb
Isaac Hess 14fd6a9ef0 storagenode/pieces: Track total piece size
This change updates the storagenode piecestore apis to expose access to
the full piece size stored on disk. Previously we only had access to
(and only kept a cache of) the content size used for all pieces. This
was inaccurate when reporting the amount of disk space used by nodes.

We now have access to the total content size, as well as the total disk
usage, of all pieces. The pieces cache also keeps a cache of the total
piece size along with the content size.

Change-Id: I4fffe7e1257e04c46021a2e37c5adc6fe69bee55
2020-01-23 11:00:24 -07:00
..
storagenodedbtest storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
testdata storagenode/pieces: Track total piece size 2020-01-23 11:00:24 -07:00
bandwidthdb.go storagenode/storagenodedb: fixes to row handling 2020-01-16 15:08:37 +00:00
database.go storagenode/pieces: Track total piece size 2020-01-23 11:00:24 -07:00
db_container.go private/tagsql,storage: fixes to context cancellation 2020-01-20 15:44:39 +02: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/pieces: Track total piece size 2020-01-23 11:00:24 -07: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 storagenode/pieces: Track total piece size 2020-01-23 11:00:24 -07: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