[patches] Re: [fio 1/1] fio: Read with empty len parameter
Konstantin Osipov
kostja at tarantool.org
Wed Jan 31 16:00:17 MSK 2018
* imarkov <imarkov at tarantool.org> [18/01/31 15:35]:
> From: IlyaMarkovMipt <markovilya197 at gmail.com>
>
> + if (not ffi.istype(const_char_ptr_t, buf) and buf == nil) or
> + (ffi.istype(const_char_ptr_t, buf) and size == nil) then
> + local st = self:stat()
> + if st == nil then
> + return 0
Why are you not checking the return value of self:stat()?
--
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.org - www.twitter.com/kostja_osipov
More information about the Tarantool-patches
mailing list