mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 02:34:12 +08:00
mdbx: fix minor warning on Solaris/SunOs.
This commit is contained in:
parent
dc4ab96d4d
commit
e82359bca0
@ -8933,7 +8933,7 @@ static int mdbx_flush_iov(MDBX_txn *const txn, struct iovec *iov,
|
||||
mdbx_assert(env, iov_items > 0);
|
||||
int rc;
|
||||
if (likely(iov_items == 1)) {
|
||||
mdbx_assert(env, iov->iov_len == iov_bytes);
|
||||
mdbx_assert(env, iov_bytes == (size_t)iov->iov_len);
|
||||
rc = mdbx_pwrite(env->me_lazy_fd, iov->iov_base, iov_bytes, iov_off);
|
||||
} else {
|
||||
rc = mdbx_pwritev(env->me_lazy_fd, iov, iov_items, iov_off, iov_bytes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user