storj/storagenode/pieces
Jennifer Johnson 71072eb593 storagenode/pieces: send piece deletions to trash
This is a temporary precaution to avoid incorrectly auditing nodes for pieces that were deleted between database backups if we have to restore from a previous backup.

Here we send pieces to trash rather than directly deleting them from storage nodes so we can restore from trash after a db restoration.

Change-Id: Icd979d2a9a755e7428190c0129c9bc969649d544
2021-04-07 16:52:10 +00:00
..
cache_test.go storagenode/pieces: implement buffering for writing 2020-05-04 06:01:32 +00:00
cache.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
db_test.go storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
deleter_test.go storagenode/pieces: send piece deletions to trash 2021-04-07 16:52:10 +00:00
deleter.go storagenode/pieces: send piece deletions to trash 2021-04-07 16:52:10 +00:00
pieceexpiration_test.go storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
readwrite_test.go all: replace == comparison with errors.Is 2020-07-14 15:50:25 +00:00
readwrite.go all: fix comments 2020-07-16 19:13:14 +03:00
store_test.go all: replace == comparison with errors.Is 2020-07-14 15:50:25 +00:00
store.go storagenode/pieces: send piece deletions to trash 2021-04-07 16:52:10 +00:00
trashchore.go storagenode/pieces: tidying trash log 2020-09-24 11:55:06 +03:00