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