mdbx: fix nasty typo in Windows's mdbx_pwritev().

This commit is contained in:
Leonid Yuriev 2017-04-15 22:44:48 +03:00
parent 49cccf4791
commit a4a542c3b5

View File

@ -383,7 +383,7 @@ int mdbx_pwritev(mdbx_filehandle_t fd, struct iovec *iov, int iovcnt,
off_t offset, size_t expected_written) {
#if defined(_WIN32) || defined(_WIN64)
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);
if (unlikely(rc != MDB_SUCCESS))
return rc;