summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/cache/cache_las.c
diff options
context:
space:
mode:
authorRamon Fernandez <ramon@mongodb.com>2017-11-17 13:50:11 -0500
committerRamon Fernandez <ramon@mongodb.com>2017-11-17 13:50:11 -0500
commitaaf2b7c407846ad28719a8efe610a4dba047dbac (patch)
tree2397257b76720f932a4348f0ee584c86ffdba6b0 /src/third_party/wiredtiger/src/cache/cache_las.c
parent60ab064909d30d982efcc3898cb374508dd54001 (diff)
downloadmongo-aaf2b7c407846ad28719a8efe610a4dba047dbac.tar.gz
Import wiredtiger: 923937e6b2bb7ffc1ff86bfaa8c2f130930286de from branch mongodb-3.6
ref: ce5ee5097b..923937e6b2 for: 3.6.0-rc5 WT-3444 Test format on PPC fails with ENOTSUP when performing an update on an LSM tree WT-3745 Don't stall reads due to write pressure WT-3746 Don't busy wait when syncing the log and waiting for writes to complete
Diffstat (limited to 'src/third_party/wiredtiger/src/cache/cache_las.c')
-rw-r--r--src/third_party/wiredtiger/src/cache/cache_las.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/cache/cache_las.c b/src/third_party/wiredtiger/src/cache/cache_las.c
index 35d9f43b172..9f8aeb7cc9e 100644
--- a/src/third_party/wiredtiger/src/cache/cache_las.c
+++ b/src/third_party/wiredtiger/src/cache/cache_las.c
@@ -518,7 +518,13 @@ __wt_las_insert_block(WT_SESSION_IMPL *session, WT_CURSOR *cursor,
cursor->set_value(cursor,
upd->txnid, &las_timestamp, upd->type, &las_value);
- WT_ERR(cursor->insert(cursor));
+ /*
+ * Using update looks a little strange because the keys
+ * are guaranteed to not exist, but since we're
+ * appending, we want the cursor to stay positioned in
+ * between inserts.
+ */
+ WT_ERR(cursor->update(cursor));
++insert_cnt;
} while ((upd = upd->next) != NULL);
}