storj/storagenode/pieces
Jess G 022f5d2e14
storagenode: add space used cache for pieces (#2753)
* add cache, update cache w/piece create/delete

* add service w/loop to cache to recalculate space used cache

* add piecestore cache to other sn svcs to use

* add table to persist the total space used

* rm cache where not needed

* rm stuff from sn svcs

* start fixing tests, changes per comments

* update commits

* add unit tests

* fix commiting before we write header bytes

* fix cache create test

* copy cache map, add started back to recalc

* fix test

* add test, update comments
2019-08-12 14:43:05 -07:00
..
cache_test.go storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00
cache.go storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00
db_test.go move piece info into files (#2629) 2019-08-07 20:47:30 -05:00
pieceexpiration_test.go move piece info into files (#2629) 2019-08-07 20:47:30 -05:00
readwrite_test.go storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00
readwrite.go storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00
store_test.go storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00
store.go storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00