mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-11 18:49:14 -06:00
fix bug in http_batch_store storing of hints (#3013)
This commit is contained in:
@@ -339,7 +339,7 @@ func (bhcs *httpBatchStore) SchedulePut(c chunks.Chunk, refHeight uint64, hints
|
||||
defer bhcs.cacheMu.RUnlock()
|
||||
bhcs.unwrittenPuts.Insert(c)
|
||||
for hint := range hints {
|
||||
hints[hint] = struct{}{}
|
||||
bhcs.hints[hint] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -347,7 +347,7 @@ func (bhcs *httpBatchStore) AddHints(hints types.Hints) {
|
||||
bhcs.cacheMu.RLock()
|
||||
defer bhcs.cacheMu.RUnlock()
|
||||
for hint := range hints {
|
||||
hints[hint] = struct{}{}
|
||||
bhcs.hints[hint] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user