diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-05-16 11:13:05 -0400 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-05-16 11:13:05 -0400 |
commit | 0893547e78009260c22506689ef71f689aeef446 (patch) | |
tree | 6b4e334e84e89dec2e4d2138764306629882fdc0 /test/format | |
parent | 62fc6016ee2aadde459fa744959f7a55357ce4a6 (diff) | |
download | mongo-0893547e78009260c22506689ef71f689aeef446.tar.gz |
WT-2628 Reconciliation can return without unlocking the page lock (#2728)
Don't clean up reconciliation structures before they've been initialized.
Fix two paths where scratch buffers could be allocated and fail to be
released.
Diffstat (limited to 'test/format')
-rw-r--r-- | test/format/util.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/format/util.c b/test/format/util.c index f2b4d18029e..cebe2153b3e 100644 --- a/test/format/util.c +++ b/test/format/util.c @@ -213,16 +213,10 @@ val_gen(WT_RAND_STATE *rnd, WT_ITEM *value, uint64_t keyno) } /* - * Start the data with a 10-digit number. - * - * For row and non-repeated variable-length column-stores, change the - * leading number to ensure every data item is unique. For repeated - * variable-length column-stores (that is, to test run-length encoding), - * use the same data value all the time. + * Data items have unique leading numbers by default and random lengths; + * variable-length column-stores use a duplicate data value to test RLE. */ - if ((g.type == ROW || g.type == VAR) && - g.c_repeat_data_pct != 0 && - mmrand(rnd, 1, 100) < g.c_repeat_data_pct) { + if (g.type == VAR && mmrand(rnd, 1, 100) < g.c_repeat_data_pct) { (void)strcpy(p, "DUPLICATEV"); p[10] = '/'; value->size = val_dup_data_len; |