diff options
author | Chenhao Qu <chenhao.qu@mongodb.com> | 2021-05-19 05:34:41 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-19 05:55:02 +0000 |
commit | 1790359df8a71c7399de0663a8ae37743367e852 (patch) | |
tree | 3a8af2e32b630d5b66ffa391064c0fa5ddebc6cf /src/third_party/wiredtiger/src/cursor | |
parent | 0710f275c6ada05c72698510fec1f403a78dc967 (diff) | |
download | mongo-1790359df8a71c7399de0663a8ae37743367e852.tar.gz |
Import wiredtiger: 28841ae4b05d7140d62e92505f9547c7128b93e8 from branch mongodb-5.0
ref: 107ab83ea7..28841ae4b0
for: 5.1.0
WT-7440 Integrate file cursor with tiered storage
Diffstat (limited to 'src/third_party/wiredtiger/src/cursor')
-rw-r--r-- | src/third_party/wiredtiger/src/cursor/cur_std.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/cursor/cur_std.c b/src/third_party/wiredtiger/src/cursor/cur_std.c index 19a50939a7a..26d6915724a 100644 --- a/src/third_party/wiredtiger/src/cursor/cur_std.c +++ b/src/third_party/wiredtiger/src/cursor/cur_std.c @@ -1222,6 +1222,10 @@ __wt_cursor_init( cursor->modify == __wt_cursor_modify_value_format_notsup) cursor->modify = __cursor_modify; + /* Tiered cursors are not yet candidates for caching. */ + if (uri != NULL && WT_PREFIX_MATCH(uri, "tiered:")) + F_CLR(cursor, WT_CURSTD_CACHEABLE); + /* * Cursors that are internal to some other cursor (such as file cursors inside a table cursor) * should be closed after the containing cursor. Arrange for that to happen by putting internal |