diff options
author | David Hows <howsdav@gmail.com> | 2016-10-17 14:59:02 +1100 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-10-17 14:59:02 +1100 |
commit | 349f5349eaaeab99f7a7178e03ab34f8ff0ebd0c (patch) | |
tree | 91eaf50b636e5712a7d3628ec7771c2d5abd9420 | |
parent | 63515011c14dda125b8acd3b29780b6ece612b0e (diff) | |
download | mongo-349f5349eaaeab99f7a7178e03ab34f8ff0ebd0c.tar.gz |
WT-2977 Remove stash and check code from LSM test (#3097)
-rw-r--r-- | test/csuite/wt2403_lsm_workload/main.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/test/csuite/wt2403_lsm_workload/main.c b/test/csuite/wt2403_lsm_workload/main.c index 868dc38b7f0..0c287484b9e 100644 --- a/test/csuite/wt2403_lsm_workload/main.c +++ b/test/csuite/wt2403_lsm_workload/main.c @@ -60,31 +60,14 @@ static void query_docs(WT_CURSOR *cursor, bool mod) { WT_ITEM key, value; - uint64_t stash; - int count, i; - - stash = INT_MAX; - count = 0; + int i; for (i = 0; i < NUM_QUERIES; i++) { testutil_check(cursor->next(cursor)); testutil_check(cursor->get_key(cursor, &key)); testutil_check(cursor->get_value(cursor, &value)); - /* Check to see if we get the same value back multiple times */ - if (stash == (uint64_t)key.data) - count++; - stash = (uint64_t)key.data; check_str((uint64_t)key.data, (char *)value.data, mod); } - - /* - * Its possible that we may randomly return the same doc a few times, - * more than say 1% is not a co-incidence. This likely means random is - * broken or we aren't ignoring "new" deletes that we shouldn't see yet. - */ - testutil_assertfmt(count <= NUM_QUERIES / 100, - "same document was returned %d times, likely we are " - "seeing the one remaining value", count); printf("%d documents read\n", NUM_QUERIES); } |