improve comment accuracy
This commit is contained in:
parent
4b1e1f4b52
commit
f651f43c5e
@ -53,7 +53,8 @@ var (
|
|||||||
// On first start, the splitstore will walk the state tree and will copy
|
// On first start, the splitstore will walk the state tree and will copy
|
||||||
// all active blocks into the hotstore.
|
// all active blocks into the hotstore.
|
||||||
warmupEpochKey = dstore.NewKey("/splitstore/warmupEpoch")
|
warmupEpochKey = dstore.NewKey("/splitstore/warmupEpoch")
|
||||||
log = logging.Logger("splitstore")
|
|
||||||
|
log = logging.Logger("splitstore")
|
||||||
)
|
)
|
||||||
|
|
||||||
const batchSize = 16384
|
const batchSize = 16384
|
||||||
@ -66,12 +67,12 @@ func init() {
|
|||||||
type Config struct {
|
type Config struct {
|
||||||
// TrackingStore is the type of tracking store to use.
|
// TrackingStore is the type of tracking store to use.
|
||||||
//
|
//
|
||||||
// Supported values are: "bolt".
|
// Supported values are: "bolt" (default if omitted).
|
||||||
TrackingStoreType string
|
TrackingStoreType string
|
||||||
|
|
||||||
// MarkSetType is the type of mark set to use.
|
// MarkSetType is the type of mark set to use.
|
||||||
//
|
//
|
||||||
// Supported values are: "bolt", "bloom".
|
// Supported values are: "bloom" (default if omitted), "bolt".
|
||||||
MarkSetType string
|
MarkSetType string
|
||||||
// perform full reachability analysis (expensive) for compaction
|
// perform full reachability analysis (expensive) for compaction
|
||||||
// You should enable this option if you plan to use the splitstore without a backing coldstore
|
// You should enable this option if you plan to use the splitstore without a backing coldstore
|
||||||
|
@ -10,10 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// TrackingStore is a persistent store that tracks blocks that are added
|
// TrackingStore is a persistent store that tracks blocks that are added
|
||||||
// within the current compaction range, including the epoch at which they are
|
// to the hotstore, tracking the epoch at which they are written.
|
||||||
// written.
|
|
||||||
//
|
|
||||||
// On every compaction, we iterate over
|
|
||||||
type TrackingStore interface {
|
type TrackingStore interface {
|
||||||
Put(cid.Cid, abi.ChainEpoch) error
|
Put(cid.Cid, abi.ChainEpoch) error
|
||||||
PutBatch([]cid.Cid, abi.ChainEpoch) error
|
PutBatch([]cid.Cid, abi.ChainEpoch) error
|
||||||
|
Loading…
Reference in New Issue
Block a user