storj/storagenode/pieces
paul cannon bd89f51c66
Keep v0pieceinfo database isolated (#3364)
* put TestCreateV0 back in StoreForTest
* avoid direct handles to V0 pieceinfo db
* type mismatch fix
* use storage.Blobs interface in store_test.go

..instead of filestore.Store. this will allow filestore.Store to become
unexported.

* unexport filestore.Store

rename it to blobStore. things should use the storage.Blobs interface
instead. changes in this commit are purely mechanical (made through the
"refactor" tool in Gocode followed by search/replace on the word "Store"
within the storage/filestore/ directory).

* kill filestore.StoreForTest

now that filestore.blobStore is unexported, there isn't a need for a
specialized wrapper type. this (not coincidentally) also makes it
possible for the WriterForFormatVersion() method on
storagenode/pieces.StoreForTest to work, without requiring everything to
wrap the store.blobs attribute in a filestore.StoreForTest, which was
impractical.
2019-11-13 13:15:31 -06:00
..
cache_test.go storagenode/pieces: fix race condition in cache service (#2972) 2019-09-12 12:42:39 -04:00
cache.go storagenode/pieces: fix race condition in cache service (#2972) 2019-09-12 12:42:39 -04:00
db_test.go storagenode/pieces: Restore lost test case (#2767) 2019-08-13 14:57:05 +02: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/piecestore + uplink/piecestore: return PieceHash and original OrderLimit during GET_REPAIR (#2775) 2019-08-26 14:57:41 -04:00
store_test.go storagenode/pieces: Add migration from v0 piece to v1 piece (#3401) 2019-11-04 17:59:45 +01:00
store.go Keep v0pieceinfo database isolated (#3364) 2019-11-13 13:15:31 -06:00