storj/storagenode/storagenodedb
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
..
storagenodedbtest Re-enable SN bandwidth rollups. Fix SN bandwidth rollup unique constraint issue. Re-organize service code (#2617) 2019-07-29 10:07:52 -04:00
testdata storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00
bandwidthdb.go Re-enable SN bandwidth rollups. Fix SN bandwidth rollup unique constraint issue. Re-organize service code (#2617) 2019-07-29 10:07:52 -04:00
consoledb.go storagenode/nodestats: cache node stats (#2543) 2019-08-08 16:47:04 +03:00
database.go move piece info into files (#2629) 2019-08-07 20:47:30 -05:00
infodb.go storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00
migrations_test.go storagenode/storagenodedb: move tests near the interface rather than the implementation (#2596) 2019-07-19 20:40:27 +03:00
orders.go storagenode: batch archiving unsent_orders (#2507) 2019-07-31 19:40:08 +03:00
pieceexpiration.go move piece info into files (#2629) 2019-08-07 20:47:30 -05:00
pieceinfo.go move piece info into files (#2629) 2019-08-07 20:47:30 -05:00
piecespaceused.go storagenode: add space used cache for pieces (#2753) 2019-08-12 14:43:05 -07:00
reputation.go storagenode/nodestats: cache node stats (#2543) 2019-08-08 16:47:04 +03:00
storageusage.go storagenode/nodestats: cache node stats (#2543) 2019-08-08 16:47:04 +03:00
usedserials.go Network Wipe (Pre Beta) (#2566) 2019-07-16 18:31:29 +02:00
vouchers.go Remove GetValid, add GetAll to vouchers DB (#2594) 2019-07-19 10:52:44 -04:00