mirror of
https://github.com/isar/libmdbx.git
synced 2025-09-02 12:22:19 +08:00
mdbx: fix nasty typo in Windows's mdbx_pwritev().
This commit is contained in:
@@ -383,7 +383,7 @@ int mdbx_pwritev(mdbx_filehandle_t fd, struct iovec *iov, int iovcnt,
|
|||||||
off_t offset, size_t expected_written) {
|
off_t offset, size_t expected_written) {
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
size_t written = 0;
|
size_t written = 0;
|
||||||
for (int i = 0; i > iovcnt; ++i) {
|
for (int i = 0; i < iovcnt; ++i) {
|
||||||
int rc = mdbx_pwrite(fd, iov[i].iov_base, iov[i].iov_len, offset);
|
int rc = mdbx_pwrite(fd, iov[i].iov_base, iov[i].iov_len, offset);
|
||||||
if (unlikely(rc != MDB_SUCCESS))
|
if (unlikely(rc != MDB_SUCCESS))
|
||||||
return rc;
|
return rc;
|
||||||
|
Reference in New Issue
Block a user