File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type hasher interface {
37
37
)
38
38
GetKeysByHashRangeWithIndexes (keys []string ) (
39
39
map [uint32 ][]string , // itemsByHashRange
40
- map [string ]int , // indexes
40
+ map [string ]int , // indexes
41
41
error ,
42
42
)
43
43
}
@@ -181,6 +181,8 @@ func (c *Cache) Put(keys []string, ttl time.Duration) error {
181
181
}
182
182
183
183
// CreateSnapshots writes the cache contents to the provided writers
184
+ // TODO CreateSnapshots should take an optional "since" parameter that the node service that infer from the filenames on S3
185
+ // Otherwise the current "since" will be lost after a node restart.
184
186
func (c * Cache ) CreateSnapshots (ctx context.Context , w map [uint32 ]io.Writer ) (uint64 , error ) {
185
187
c .snapshottingLock .Lock ()
186
188
if c .snapshotting {
You can’t perform that action at this time.
0 commit comments