diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-06-03 02:48:08 +0000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-06-03 02:48:08 +0000 |
commit | 8805c9ee5384fecdd59d19d35bbb959344ad3d58 (patch) | |
tree | 091dcc931492beabe8ae9fc8bb2d017055e8cee6 /src | |
parent | 8fb1ea50f656e551593025a4488742005282ccb7 (diff) | |
download | mongo-8805c9ee5384fecdd59d19d35bbb959344ad3d58.tar.gz |
Remove unused loop variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/lsm/lsm_tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lsm/lsm_tree.c b/src/lsm/lsm_tree.c index 8b8779da0ef..77e8106dbe3 100644 --- a/src/lsm/lsm_tree.c +++ b/src/lsm/lsm_tree.c @@ -608,7 +608,7 @@ __wt_lsm_tree_throttle( { WT_LSM_CHUNK *last_chunk, **cp, *ondisk, *prev_chunk; uint64_t cache_sz, cache_used, oldtime, record_count, timediff; - uint32_t i, in_memory, gen0_chunks; + uint32_t in_memory, gen0_chunks; /* Never throttle in small trees. */ if (lsm_tree->nchunks < 3) { @@ -634,9 +634,9 @@ __wt_lsm_tree_throttle( record_count = 1; gen0_chunks = in_memory = 0; ondisk = NULL; - for (i = 0, cp = lsm_tree->chunk + lsm_tree->nchunks - 1; - i < lsm_tree->nchunks; - ++i, --cp) + for (cp = lsm_tree->chunk + lsm_tree->nchunks - 1; + cp >= lsm_tree->chunk; + --cp) if (!F_ISSET(*cp, WT_LSM_CHUNK_ONDISK)) { record_count += (*cp)->count; ++in_memory; |