From 8144738a06aa4e06d107fc783e979e0674ada34b Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Wed, 4 Jan 2017 07:09:45 -0800 Subject: [PATCH] fix bug in http_batch_store storing of hints (#3013) --- go/datas/http_batch_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/datas/http_batch_store.go b/go/datas/http_batch_store.go index 42494d216a..b7897c4d5a 100644 --- a/go/datas/http_batch_store.go +++ b/go/datas/http_batch_store.go @@ -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{}{} } }