[Tarantool-patches] [PATCH v2 1/3] sql: add missing diag_set on failure when working with files inside SQL module
Leonid Vasiliev
lvasiliev at tarantool.org
Thu Dec 17 02:17:13 MSK 2020
Hi! Thank you for the review.
On 16.12.2020 01:12, Vladislav Shpilevoy wrote:
> Thanks for the fixes!
>
> What about missing diag in robust_ftruncate()?
>
> In findInodeInfo() you can get -1 from fstat().
>
> unixFileLock() can return -1 from fcntl().
>
> seekAndRead() and seekAndWriteFd() can return -1
> from lseek() and read().
>
> fcntlSizeHint() and unixMapfile() can return -1
> from fstat().
>
> unixGetTempname() can return -1, but I don't see if
> it even sets errno.
errno can be set inside `unixTempFileDir()`. This will cause
`unixGetTempname()` return -1.
>
> getFileMode() can return -1 from stat().
>
> unixDelete() can return -1 from unlink(), fstat()
>
> I suggest to fix everything. It is all in one file and all
> is related.
Ok. Fix everything. I don't mind.
See PATCH v3
>
More information about the Tarantool-patches
mailing list