2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1997-2009 Oracle. All rights reserved.
15 * Flush a file descriptor.
25 dbenv = env == NULL ? NULL : env->dbenv;
28 * Do nothing if the file descriptor has been marked as not requiring
31 if (F_ISSET(fhp, DB_FH_NOSYNC))
34 if (dbenv != NULL && FLD_ISSET(dbenv->verbose, DB_VERB_FILEOPS_ALL))
35 __db_msg(env, "fileops: flush %s", fhp->name);
37 RETRY_CHK((!FlushFileBuffers(fhp->handle)), ret);
39 __db_syserr(env, ret, "FlushFileBuffers");
40 ret = __os_posix_err(ret);