9c67f62fe3
This table will be used as a queue for pieces that need to be reverified (a regular audit timed out on the owning node, so now that node is contained and we need to validate the piece before un-containing it). Refs: https://github.com/storj/storj/issues/5228 Change-Id: I5dcd26b6adced8674cbd81884c1543a61ea9d4c8
30 lines
632 B
Go
30 lines
632 B
Go
// Copyright (C) 2022 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package audit
|
|
|
|
import (
|
|
"time"
|
|
|
|
"storj.io/common/storj"
|
|
"storj.io/common/uuid"
|
|
"storj.io/storj/satellite/metabase"
|
|
)
|
|
|
|
// PieceLocator specifies all information necessary to look up a particular piece
|
|
// on a particular satellite.
|
|
type PieceLocator struct {
|
|
StreamID uuid.UUID
|
|
Position metabase.SegmentPosition
|
|
NodeID storj.NodeID
|
|
PieceNum int
|
|
}
|
|
|
|
// ReverificationJob represents a job as received from the reverification
|
|
// audit queue.
|
|
type ReverificationJob struct {
|
|
Locator PieceLocator
|
|
InsertedAt time.Time
|
|
ReverifyCount int
|
|
}
|