summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/os_posix/os_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/os_posix/os_fs.c')
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_fs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/os_posix/os_fs.c b/src/third_party/wiredtiger/src/os_posix/os_fs.c
index 1ae6259e5d8..3898eb74343 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_fs.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_fs.c
@@ -797,12 +797,16 @@ __posix_open_file(WT_FILE_SYSTEM *file_system, WT_SESSION *wt_session, const cha
/* Create/Open the file. */
WT_SYSCALL_RETRY(((pfh->fd = open(name, f, mode)) == -1 ? -1 : 0), ret);
- if (ret != 0)
+ if (ret != 0) {
+ /* If we don't want error messages, just return the error value. */
+ if (F_ISSET(session, WT_SESSION_QUIET_TIERED) && ret == ENOENT)
+ goto err;
WT_ERR_MSG(session, ret,
pfh->direct_io ? "%s: handle-open: open: failed with direct I/O configured, some "
"filesystem types do not support direct I/O" :
"%s: handle-open: open",
name);
+ }
#ifdef __linux__
/*