diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-07-13 13:38:10 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-07-13 13:38:10 +1000 |
commit | 7f4761bab01d588f41016500eedac9c764b8078f (patch) | |
tree | 220c4353e3b129cdde8eeff2807d2579b8bee857 | |
parent | dd08d48c0e4aaa6679419132aa85f482c16921d2 (diff) | |
download | mongo-7f4761bab01d588f41016500eedac9c764b8078f.tar.gz |
Import wiredtiger-wiredtiger-mongodb-3.0.4-22-g3963315.tar.gz from wiredtiger branch mongodb-3.0
-rw-r--r-- | src/third_party/wiredtiger/src/btree/bt_walk.c | 12 | ||||
-rw-r--r-- | src/third_party/wiredtiger/src/include/log.h | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/btree/bt_walk.c b/src/third_party/wiredtiger/src/btree/bt_walk.c index 98411ce548d..d146850b505 100644 --- a/src/third_party/wiredtiger/src/btree/bt_walk.c +++ b/src/third_party/wiredtiger/src/btree/bt_walk.c @@ -141,6 +141,12 @@ ascend: /* session, couple, flags)); WT_ERR(ret); } + + /* + * Set the reference hint (used when we continue + * the walk). + */ + ref->ref_hint = slot; } *refp = ref; @@ -158,6 +164,12 @@ ascend: /* for (;;) { ref = pindex->index[slot]; + /* + * Set the reference hint (used when we continue the + * walk). + */ + ref->ref_hint = slot; + if (LF_ISSET(WT_READ_CACHE)) { /* * Only look at unlocked pages in memory: diff --git a/src/third_party/wiredtiger/src/include/log.h b/src/third_party/wiredtiger/src/include/log.h index e522a619c9a..66f346e2fc3 100644 --- a/src/third_party/wiredtiger/src/include/log.h +++ b/src/third_party/wiredtiger/src/include/log.h @@ -156,7 +156,7 @@ typedef struct { * slot count of one. */ #define SLOT_ACTIVE 1 -#define SLOT_POOL 16 +#define SLOT_POOL 128 uint32_t pool_index; /* Global pool index */ WT_LOGSLOT *slot_array[SLOT_ACTIVE]; /* Active slots */ WT_LOGSLOT slot_pool[SLOT_POOL]; /* Pool of all slots */ |