Commit 11f2645 1 parent 06a8fd6 commit 11f2645 Copy full SHA for 11f2645
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,8 @@ type Cache struct {
183
183
// Due to a bug in atomic size needs to be the first word in the struct, as
184
184
// that's the only place where you're guaranteed to be 64-bit aligned on a
185
185
// 32 bit system. See: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
186
- size uint64
186
+ size uint64
187
+ snapshotSize uint64
187
188
188
189
mu sync.RWMutex
189
190
store storer
@@ -193,7 +194,6 @@ type Cache struct {
193
194
// they're kept in memory while flushing so they can be queried along with the cache.
194
195
// they are read only and should never be modified
195
196
snapshot * Cache
196
- snapshotSize uint64
197
197
snapshotting bool
198
198
199
199
// This number is the number of pending or failed WriteSnaphot attempts since the last successful one.
You can’t perform that action at this time.
0 commit comments