fix determine the file size

fix determine the file size
pull/5431/head
runner 2016-01-24 12:06:51 +08:00 committed by runner.mei
parent 60df13fb56
commit 4b7fe70cd3
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ func NewTSMReaderWithOptions(opt TSMReaderOptions) (*TSMReader, error) {
t := &TSMReader{}
if opt.Reader != nil {
// Seek to the end of the file to determine the size
size, err := opt.Reader.Seek(2, 0)
size, err := opt.Reader.Seek(0, os.SEEK_END)
if err != nil {
return nil, err
}