improve comment accuracy

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