Chromium Code Reviews| Index: impl/memory/datastore_data.go |
| diff --git a/impl/memory/datastore_data.go b/impl/memory/datastore_data.go |
| index e221c55eee161eb9fda8fece355a4a71da1da546..f0dcc416b9f14ed55711304ee82a1a4dcf6cd6a3 100644 |
| --- a/impl/memory/datastore_data.go |
| +++ b/impl/memory/datastore_data.go |
| @@ -126,7 +126,8 @@ func (d *dataStoreData) getQuerySnaps(consistent bool) (idx, head *memStore) { |
| defer d.rwlock.RUnlock() |
| if d.snap == nil { |
| // we're 'always consistent' |
| - return d.head, d.head |
| + snap := d.head.Snapshot() |
| + return snap, snap |
|
iannucci
2015/09/30 03:03:31
This was really dumb on my part. `d.head` is the c
|
| } |
| head = d.head.Snapshot() |