Merge pull request #8657 from influxdata/jw-key-cursor

Remove unused filestore reference
pull/8655/merge
Jason Wilder 2017-08-01 11:07:35 -06:00 committed by GitHub
commit 68340c208c
1 changed files with 0 additions and 3 deletions

View File

@ -859,7 +859,6 @@ func ParseTSMFileName(name string) (int, int, error) {
// KeyCursor allows iteration through keys in a set of files within a FileStore.
type KeyCursor struct {
key []byte
fs *FileStore
// seeks is all the file locations that we need to return during iteration.
seeks []*location
@ -932,7 +931,6 @@ func (a ascLocations) Less(i, j int) bool {
func newKeyCursor(fs *FileStore, key []byte, t int64, ascending bool) *KeyCursor {
c := &KeyCursor{
key: key,
fs: fs,
seeks: fs.locations(key, t, ascending),
ascending: ascending,
}
@ -963,7 +961,6 @@ func (c *KeyCursor) Close() {
c.buf = nil
c.seeks = nil
c.fs = nil
c.current = nil
}