Return code from pwrite() shouldn't be ignored.
This commit is contained in:
parent
8515231647
commit
6a0608b01f
1 changed files with 1 additions and 1 deletions
|
@ -2769,7 +2769,7 @@ mdb_env_write_meta(MDB_txn *txn)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
WriteFile(env->me_fd, ptr, len, NULL, &ov);
|
WriteFile(env->me_fd, ptr, len, NULL, &ov);
|
||||||
#else
|
#else
|
||||||
pwrite(env->me_fd, ptr, len, off);
|
rc = pwrite(env->me_fd, ptr, len, off);
|
||||||
#endif
|
#endif
|
||||||
fail:
|
fail:
|
||||||
env->me_flags |= MDB_FATAL_ERROR;
|
env->me_flags |= MDB_FATAL_ERROR;
|
||||||
|
|
Loading…
Reference in a new issue