diff options
author | Alex Gorrod <alexander.gorrod@mongodb.com> | 2017-06-08 05:26:20 +1000 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2017-06-08 05:26:20 +1000 |
commit | 92f6668a768ebf294bd4f494c50f48459198e6a3 (patch) | |
tree | 5881f3355b62a6b0ac2b9ca2a49de5f81b11a980 /src/third_party/wiredtiger/src/reconcile/rec_write.c | |
parent | f2847a6ecf6bf0ca5b2a2b6e248466680d1290de (diff) | |
download | mongo-92f6668a768ebf294bd4f494c50f48459198e6a3.tar.gz |
Import wiredtiger: 6da948fe3d4dd7262cbd0528d66867f276ce811d from branch mongodb-3.2r3.2.14-rc1r3.2.14
ref: f5c08e2b5f..6da948fe3d
for: 3.2.14
WT-3293 Make internal symbols externally visible
WT-3345 Improve rwlock scaling
WT-3354 Coverity issues 1375904-1375907
WT-3356 rwlock assertion failure on PPC
Diffstat (limited to 'src/third_party/wiredtiger/src/reconcile/rec_write.c')
-rw-r--r-- | src/third_party/wiredtiger/src/reconcile/rec_write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/third_party/wiredtiger/src/reconcile/rec_write.c b/src/third_party/wiredtiger/src/reconcile/rec_write.c index 6f95b84d292..e59d9796352 100644 --- a/src/third_party/wiredtiger/src/reconcile/rec_write.c +++ b/src/third_party/wiredtiger/src/reconcile/rec_write.c @@ -386,7 +386,7 @@ __wt_reconcile(WT_SESSION_IMPL *session, WT_REF *ref, * In-memory splits: reconciliation of an internal page cannot handle * a child page splitting during the reconciliation. */ - __wt_writelock(session, &page->page_lock); + WT_PAGE_LOCK(session, page); oldest_id = __wt_txn_oldest_id(session); if (LF_ISSET(WT_EVICTING)) @@ -405,7 +405,7 @@ __wt_reconcile(WT_SESSION_IMPL *session, WT_REF *ref, /* Initialize the reconciliation structure for each new run. */ if ((ret = __rec_write_init( session, ref, flags, salvage, &session->reconcile)) != 0) { - __wt_writeunlock(session, &page->page_lock); + WT_PAGE_UNLOCK(session, page); return (ret); } r = session->reconcile; @@ -446,7 +446,7 @@ __wt_reconcile(WT_SESSION_IMPL *session, WT_REF *ref, WT_TRET(__rec_write_wrapup_err(session, r, page)); /* Release the reconciliation lock. */ - __wt_writeunlock(session, &page->page_lock); + WT_PAGE_UNLOCK(session, page); /* * If our caller can configure lookaside table reconciliation, flag if |