diff options
author | Luke Chen <luke.chen@mongodb.com> | 2021-05-11 16:34:01 +1000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-11 06:59:30 +0000 |
commit | 53b252b212696c6ad85508f6db9e51724296fcd1 (patch) | |
tree | cf2bb72d8c22fe4cb2bf3df1ec2f1c3b91092326 /src/third_party/wiredtiger/src/btree | |
parent | 25040e38149fec631205966b5dc90eb55b9be182 (diff) | |
download | mongo-53b252b212696c6ad85508f6db9e51724296fcd1.tar.gz |
Import wiredtiger: 7a0717c8cfdabbc0470b5e322c737bb45f7ca6df from branch mongodb-5.0
ref: 7840141fbf..7a0717c8cf
for: 5.0.0
WT-7506 Allow single and double quotes inside auto-formatted comments
Diffstat (limited to 'src/third_party/wiredtiger/src/btree')
-rw-r--r-- | src/third_party/wiredtiger/src/btree/bt_handle.c | 5 | ||||
-rw-r--r-- | src/third_party/wiredtiger/src/btree/bt_split.c | 12 | ||||
-rw-r--r-- | src/third_party/wiredtiger/src/btree/row_key.c | 26 |
3 files changed, 18 insertions, 25 deletions
diff --git a/src/third_party/wiredtiger/src/btree/bt_handle.c b/src/third_party/wiredtiger/src/btree/bt_handle.c index 0d36f155f7a..0dedfdcf7a5 100644 --- a/src/third_party/wiredtiger/src/btree/bt_handle.c +++ b/src/third_party/wiredtiger/src/btree/bt_handle.c @@ -389,9 +389,8 @@ __btree_conf(WT_SESSION_IMPL *session, WT_CKPT *ckpt) F_CLR(btree, WT_BTREE_IGNORE_CACHE); /* - * The metadata isn't blocked by in-memory cache limits because metadata - * "unroll" is performed by updates that are potentially blocked by the - * cache-full checks. + * The metadata isn't blocked by in-memory cache limits because metadata "unroll" is performed + * by updates that are potentially blocked by the cache-full checks. */ if (WT_IS_METADATA(btree->dhandle)) F_SET(btree, WT_BTREE_IGNORE_CACHE); diff --git a/src/third_party/wiredtiger/src/btree/bt_split.c b/src/third_party/wiredtiger/src/btree/bt_split.c index 765d9240657..6fc62f0a52b 100644 --- a/src/third_party/wiredtiger/src/btree/bt_split.c +++ b/src/third_party/wiredtiger/src/btree/bt_split.c @@ -1782,14 +1782,12 @@ __split_insert(WT_SESSION_IMPL *session, WT_REF *ref) if (type == WT_PAGE_ROW_LEAF) { /* - * Copy the first key from the original page into first ref in - * the new parent. Pages created in memory always have a - * "smallest" insert list, so look there first. If we don't - * find one, get the first key from the disk image. + * Copy the first key from the original page into first ref in the new parent. Pages created + * in memory always have a "smallest" insert list, so look there first. If we don't find + * one, get the first key from the disk image. * - * We can't just use the key from the original ref: it may have - * been suffix-compressed, and after the split the truncated key - * may not be valid. + * We can't just use the key from the original ref: it may have been suffix-compressed, and + * after the split the truncated key may not be valid. */ WT_ERR(__wt_scr_alloc(session, 0, &key)); if ((ins = WT_SKIP_FIRST(WT_ROW_INSERT_SMALLEST(page))) != NULL) { diff --git a/src/third_party/wiredtiger/src/btree/row_key.c b/src/third_party/wiredtiger/src/btree/row_key.c index 12558339f97..1e4b1ceba32 100644 --- a/src/third_party/wiredtiger/src/btree/row_key.c +++ b/src/third_party/wiredtiger/src/btree/row_key.c @@ -32,22 +32,18 @@ __wt_row_leaf_keys(WT_SESSION_IMPL *session, WT_PAGE *page) } /* - * Row-store leaf pages are written as one big prefix-compressed chunk, - * that is, only the first key on the page is not prefix-compressed, and - * to instantiate the last key on the page, you have to take the first - * key on the page and roll it forward to the end of the page. We don't - * want to do that on every page access, of course, so we instantiate a - * set of keys, essentially creating prefix chunks on the page, where we - * can roll forward from the closest, previous, instantiated key. The - * complication is that not all keys on a page are equal: we're doing a - * binary search on the page, which means there are keys we look at a - * lot (every time we search the page), and keys we never look at unless - * they are actually being searched for. This function figures out the - * "interesting" keys on a page, and then we sequentially walk that list - * instantiating those keys. + * Row-store leaf pages are written as one big prefix-compressed chunk, that is, only the first + * key on the page is not prefix-compressed, and to instantiate the last key on the page, you + * have to take the first key on the page and roll it forward to the end of the page. We don't + * want to do that on every page access, of course, so we instantiate a set of keys, essentially + * creating prefix chunks on the page, where we can roll forward from the closest, previous, + * instantiated key. The complication is that not all keys on a page are equal: we're doing a + * binary search on the page, which means there are keys we look at a lot (every time we search + * the page), and keys we never look at unless they are actually being searched for. This + * function figures out the "interesting" keys on a page, and then we sequentially walk that + * list instantiating those keys. * - * Allocate a bit array and figure out the set of "interesting" keys, - * marking up the array. + * Allocate a bit array and figure out the set of "interesting" keys, marking up the array. */ WT_RET(__wt_scr_alloc(session, 0, &key)); WT_RET(__wt_scr_alloc(session, (uint32_t)__bitstr_size(page->entries), &tmp)); |