summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-03-22 13:56:31 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2016-03-22 13:56:31 +1100
commite3a043eed98859f1585b0854c179c81f7486f1e7 (patch)
treedbe9ab84c2a9baa3819a85b0b5a62ca7daf5540c
parent2371e490429ba3780e75e2910a2e686ae77ad040 (diff)
downloadmongo-e3a043eed98859f1585b0854c179c81f7486f1e7.tar.gz
WT-2503 Rename "wait" to avoid shadowing system call.
-rw-r--r--src/lsm/lsm_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lsm/lsm_tree.c b/src/lsm/lsm_tree.c
index 2b7e68b3f4e..c69f5416621 100644
--- a/src/lsm/lsm_tree.c
+++ b/src/lsm/lsm_tree.c
@@ -85,7 +85,7 @@ __lsm_tree_discard(WT_SESSION_IMPL *session, WT_LSM_TREE *lsm_tree, bool final)
* Close an LSM tree structure.
*/
static int
-__lsm_tree_close(WT_SESSION_IMPL *session, WT_LSM_TREE *lsm_tree, bool wait)
+__lsm_tree_close(WT_SESSION_IMPL *session, WT_LSM_TREE *lsm_tree, bool final)
{
WT_DECL_RET;
int i;
@@ -105,7 +105,7 @@ __lsm_tree_close(WT_SESSION_IMPL *session, WT_LSM_TREE *lsm_tree, bool wait)
* access is not available.
*/
for (i = 0;
- lsm_tree->queue_ref > 0 || (wait && lsm_tree->refcnt > 1); ++i) {
+ lsm_tree->queue_ref > 0 || (final && lsm_tree->refcnt > 1); ++i) {
/*
* Remove any work units from the manager queues. Do this step
* repeatedly in case a work unit was in the process of being