storj/storagenode/gracefulexit
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
..
chore_test.go storagenode/pieces: Track total piece size 2020-01-23 11:00:24 -07:00
chore.go {satellite,storagnode}/gracefulexit: reduce logging 2020-01-19 22:36:13 +02:00
common.go common: separate repository 2019-12-27 14:11:15 +02:00
db_test.go storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
endpoint_test.go common: separate repository 2019-12-27 14:11:15 +02:00
endpoint.go storagenode/pieces: Track total piece size 2020-01-23 11:00:24 -07:00
worker_test.go storagenode/pieces: Track total piece size 2020-01-23 11:00:24 -07:00
worker.go storagenode\gracefulexit: broke worker deleteOnePieceOrAll into deleteOnePiece and deleteAllPieces and deletePiece 2020-01-17 15:07:34 +00:00