1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
|
/*-
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdictions that recognize copyright laws, the author or authors
* of this software dedicate any and all copyright interest in the
* software to the public domain. We make this dedication for the benefit
* of the public at large and to the detriment of our heirs and
* successors. We intend this dedication to be an overt act of
* relinquishment in perpetuity of all present and future rights to this
* software under copyright law.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "wtperf.h"
/* All options changeable on command line using -o or -O are listed here. */
static CONFIG_OPT config_opts[] = {
#define OPT_DEFINE_DESC
#include "wtperf_opt.i"
#undef OPT_DEFINE_DESC
};
static int config_opt(CONFIG *, WT_CONFIG_ITEM *, WT_CONFIG_ITEM *);
static void config_opt_usage(void);
/*
* STRING_MATCH --
* Return if a string matches a bytestring of a specified length.
*/
#undef STRING_MATCH
#define STRING_MATCH(str, bytes, len) \
(strncmp(str, bytes, len) == 0 && (str)[(len)] == '\0')
/*
* config_assign --
* Assign the src config to the dest, any storage allocated in dest is
* freed as a result.
*/
int
config_assign(CONFIG *dest, const CONFIG *src)
{
size_t i, len;
char *newstr, **pstr;
config_free(dest);
memcpy(dest, src, sizeof(CONFIG));
if (src->uris != NULL) {
dest->uris = calloc(src->table_count, sizeof(char *));
if (dest->uris == NULL)
return (enomem(dest));
for (i = 0; i < src->table_count; i++)
dest->uris[i] = strdup(src->uris[i]);
}
dest->ckptthreads = NULL;
dest->popthreads = NULL;
dest->workers = NULL;
if (src->base_uri != NULL)
dest->base_uri = strdup(src->base_uri);
if (src->workload != NULL) {
dest->workload = calloc(WORKLOAD_MAX, sizeof(WORKLOAD));
if (dest->workload == NULL)
return (enomem(dest));
memcpy(dest->workload,
src->workload, WORKLOAD_MAX * sizeof(WORKLOAD));
}
for (i = 0; i < sizeof(config_opts) / sizeof(config_opts[0]); i++)
if (config_opts[i].type == STRING_TYPE ||
config_opts[i].type == CONFIG_STRING_TYPE) {
pstr = (char **)
((u_char *)dest + config_opts[i].offset);
if (*pstr != NULL) {
len = strlen(*pstr) + 1;
if ((newstr = malloc(len)) == NULL)
return (enomem(src));
strncpy(newstr, *pstr, len);
*pstr = newstr;
}
}
return (0);
}
/*
* config_free --
* Free any storage allocated in the config struct.
*/
void
config_free(CONFIG *cfg)
{
size_t i;
char **pstr;
for (i = 0; i < sizeof(config_opts) / sizeof(config_opts[0]); i++)
if (config_opts[i].type == STRING_TYPE ||
config_opts[i].type == CONFIG_STRING_TYPE) {
pstr = (char **)
((unsigned char *)cfg + config_opts[i].offset);
if (*pstr != NULL) {
free(*pstr);
*pstr = NULL;
}
}
if (cfg->uris != NULL) {
for (i = 0; i < cfg->table_count; i++)
free(cfg->uris[i]);
free(cfg->uris);
}
free(cfg->ckptthreads);
free(cfg->popthreads);
free(cfg->base_uri);
free(cfg->workers);
free(cfg->workload);
}
/*
* config_compress --
* Parse the compression configuration.
*/
int
config_compress(CONFIG *cfg)
{
int ret;
const char *s;
ret = 0;
s = cfg->compression;
if (strcmp(s, "none") == 0) {
cfg->compress_ext = NULL;
cfg->compress_table = NULL;
} else if (strcmp(s, "bzip") == 0) {
cfg->compress_ext = BZIP_EXT;
cfg->compress_table = BZIP_BLK;
} else if (strcmp(s, "snappy") == 0) {
cfg->compress_ext = SNAPPY_EXT;
cfg->compress_table = SNAPPY_BLK;
} else if (strcmp(s, "zlib") == 0) {
cfg->compress_ext = ZLIB_EXT;
cfg->compress_table = ZLIB_BLK;
} else {
fprintf(stderr,
"invalid compression configuration: %s\n", s);
ret = EINVAL;
}
return (ret);
}
/*
* config_threads --
* Parse the thread configuration.
*/
static int
config_threads(CONFIG *cfg, const char *config, size_t len)
{
WORKLOAD *workp;
WT_CONFIG_ITEM groupk, groupv, k, v;
WT_CONFIG_PARSER *group, *scan;
int ret;
group = scan = NULL;
/* Allocate the workload array. */
if ((cfg->workload = calloc(WORKLOAD_MAX, sizeof(WORKLOAD))) == NULL)
return (enomem(cfg));
cfg->workload_cnt = 0;
/*
* The thread configuration may be in multiple groups, that is, we have
* to handle configurations like:
* threads=((count=2,reads=1),(count=8,inserts=2,updates=1))
*
* Start a scan on the original string, then do scans on each string
* returned from the original string.
*/
if ((ret =
wiredtiger_config_parser_open(NULL, config, len, &group)) != 0)
goto err;
while ((ret = group->next(group, &groupk, &groupv)) == 0) {
if ((ret = wiredtiger_config_parser_open(
NULL, groupk.str, groupk.len, &scan)) != 0)
goto err;
/* Move to the next workload slot. */
if (cfg->workload_cnt == WORKLOAD_MAX) {
fprintf(stderr,
"too many workloads configured, only %d workloads "
"supported\n",
WORKLOAD_MAX);
return (EINVAL);
}
workp = &cfg->workload[cfg->workload_cnt++];
while ((ret = scan->next(scan, &k, &v)) == 0) {
if (STRING_MATCH("count", k.str, k.len)) {
if ((workp->threads = v.val) <= 0)
goto err;
continue;
}
if (STRING_MATCH("insert", k.str, k.len) ||
STRING_MATCH("inserts", k.str, k.len)) {
if ((workp->insert = v.val) < 0)
goto err;
continue;
}
if (STRING_MATCH("read", k.str, k.len) ||
STRING_MATCH("reads", k.str, k.len)) {
if ((workp->read = v.val) < 0)
goto err;
continue;
}
if (STRING_MATCH("update", k.str, k.len) ||
STRING_MATCH("updates", k.str, k.len)) {
if ((workp->update = v.val) < 0)
goto err;
continue;
}
goto err;
}
if (ret == WT_NOTFOUND)
ret = 0;
if (ret != 0 )
goto err;
ret = scan->close(scan);
scan = NULL;
if (ret != 0)
goto err;
if (workp->insert == 0 &&
workp->read == 0 && workp->update == 0)
goto err;
cfg->workers_cnt += (u_int)workp->threads;
}
ret = group->close(group);
group = NULL;
if (ret != 0)
goto err;
return (0);
err: if (group != NULL)
(void)group->close(group);
if (scan != NULL)
(void)scan->close(scan);
fprintf(stderr,
"invalid thread configuration or scan error: %.*s\n",
(int)len, config);
return (EINVAL);
}
/*
* config_opt --
* Check a single key=value returned by the config parser against our table
* of valid keys, along with the expected type. If everything is okay, set the
* value.
*/
static int
config_opt(CONFIG *cfg, WT_CONFIG_ITEM *k, WT_CONFIG_ITEM *v)
{
CONFIG_OPT *popt;
char *newstr, **strp;
size_t i, nopt;
uint64_t newlen;
void *valueloc;
popt = NULL;
nopt = sizeof(config_opts)/sizeof(config_opts[0]);
for (i = 0; i < nopt; i++)
if (strlen(config_opts[i].name) == k->len &&
strncmp(config_opts[i].name, k->str, k->len) == 0) {
popt = &config_opts[i];
break;
}
if (popt == NULL) {
fprintf(stderr, "wtperf: Error: "
"unknown option \'%.*s\'\n", (int)k->len, k->str);
fprintf(stderr, "Options:\n");
for (i = 0; i < nopt; i++)
fprintf(stderr, "\t%s\n", config_opts[i].name);
return (EINVAL);
}
valueloc = ((unsigned char *)cfg + popt->offset);
switch (popt->type) {
case BOOL_TYPE:
if (v->type != WT_CONFIG_ITEM_BOOL) {
fprintf(stderr, "wtperf: Error: "
"bad bool value for \'%.*s=%.*s\'\n",
(int)k->len, k->str, (int)v->len, v->str);
return (EINVAL);
}
*(int *)valueloc = (int)v->val;
break;
case INT_TYPE:
if (v->type != WT_CONFIG_ITEM_NUM) {
fprintf(stderr, "wtperf: Error: "
"bad int value for \'%.*s=%.*s\'\n",
(int)k->len, k->str, (int)v->len, v->str);
return (EINVAL);
}
if (v->val > INT_MAX) {
fprintf(stderr, "wtperf: Error: "
"int value out of range for \'%.*s=%.*s\'\n",
(int)k->len, k->str, (int)v->len, v->str);
return (EINVAL);
}
*(int *)valueloc = (int)v->val;
break;
case UINT32_TYPE:
if (v->type != WT_CONFIG_ITEM_NUM) {
fprintf(stderr, "wtperf: Error: "
"bad uint32 value for \'%.*s=%.*s\'\n",
(int)k->len, k->str, (int)v->len, v->str);
return (EINVAL);
}
if (v->val < 0 || v->val > UINT_MAX) {
fprintf(stderr, "wtperf: Error: "
"uint32 value out of range for \'%.*s=%.*s\'\n",
(int)k->len, k->str, (int)v->len, v->str);
return (EINVAL);
}
*(uint32_t *)valueloc = (uint32_t)v->val;
break;
case CONFIG_STRING_TYPE:
if (v->type != WT_CONFIG_ITEM_STRING) {
fprintf(stderr, "wtperf: Error: "
"bad string value for \'%.*s=%.*s\'\n",
(int)k->len, k->str, (int)v->len, v->str);
return (EINVAL);
}
strp = (char **)valueloc;
newlen = v->len + 1;
if (*strp == NULL) {
if ((newstr = calloc(newlen, sizeof(char))) == NULL)
return (enomem(cfg));
strncpy(newstr, v->str, v->len);
} else {
newlen += (strlen(*strp) + 1);
if ((newstr = calloc(newlen, sizeof(char))) == NULL)
return (enomem(cfg));
snprintf(newstr, newlen,
"%s,%*s", *strp, (int)v->len, v->str);
/* Free the old value now we've copied it. */
free(*strp);
}
*strp = newstr;
break;
case STRING_TYPE:
/*
* Thread configuration is the one case where the type isn't a
* "string", it's a "struct".
*/
if (v->type == WT_CONFIG_ITEM_STRUCT &&
STRING_MATCH("threads", k->str, k->len))
return (config_threads(cfg, v->str, v->len));
if (v->type != WT_CONFIG_ITEM_STRING) {
fprintf(stderr, "wtperf: Error: "
"bad string value for \'%.*s=%.*s\'\n",
(int)k->len, k->str, (int)v->len, v->str);
return (EINVAL);
}
strp = (char **)valueloc;
free(*strp);
if ((newstr = malloc(v->len + 1)) == NULL)
return (enomem(cfg));
strncpy(newstr, v->str, v->len);
newstr[v->len] = '\0';
*strp = newstr;
break;
}
return (0);
}
/*
* config_opt_file --
* Parse a configuration file. We recognize comments '#' and continuation
* via lines ending in '\'.
*/
int
config_opt_file(CONFIG *cfg, const char *filename)
{
struct stat sb;
ssize_t read_size;
size_t buf_size, linelen, optionpos;
int contline, fd, linenum, ret;
char option[1024];
char *comment, *file_buf, *line, *ltrim, *rtrim;
file_buf = NULL;
if ((fd = open(filename, O_RDONLY)) == -1) {
fprintf(stderr, "wtperf: %s: %s\n", filename, strerror(errno));
return (errno);
}
if ((ret = fstat(fd, &sb)) != 0) {
fprintf(stderr, "wtperf: stat of %s: %s\n",
filename, strerror(errno));
ret = errno;
goto err;
}
buf_size = (size_t)sb.st_size;
file_buf = calloc(buf_size + 2, 1);
if (file_buf == NULL) {
ret = ENOMEM;
goto err;
}
read_size = read(fd, file_buf, buf_size);
if (read_size == -1 || (size_t)read_size != buf_size) {
fprintf(stderr,
"wtperf: read unexpected amount from config file\n");
ret = EINVAL;
goto err;
}
/* Make sure the buffer is terminated correctly. */
file_buf[buf_size] = '\0';
ret = 0;
optionpos = 0;
linenum = 0;
/*
* We should switch this from using strtok to generating a single
* WiredTiger configuration string compatible string, and using
* the WiredTiger configuration parser to parse it at once.
*/
#define WTPERF_CONFIG_DELIMS "\n\\"
for (line = strtok(file_buf, WTPERF_CONFIG_DELIMS);
line != NULL;
line = strtok(NULL, WTPERF_CONFIG_DELIMS)) {
linenum++;
/* trim the line */
for (ltrim = line; *ltrim && isspace(*ltrim); ltrim++)
;
rtrim = <rim[strlen(ltrim)];
if (rtrim > ltrim && rtrim[-1] == '\n')
rtrim--;
contline = (rtrim > ltrim && rtrim[-1] == '\\');
if (contline)
rtrim--;
comment = strchr(ltrim, '#');
if (comment != NULL && comment < rtrim)
rtrim = comment;
while (rtrim > ltrim && isspace(rtrim[-1]))
rtrim--;
linelen = (size_t)(rtrim - ltrim);
if (linelen == 0)
continue;
if (linelen + optionpos + 1 > sizeof(option)) {
fprintf(stderr, "wtperf: %s: %d: line overflow\n",
filename, linenum);
ret = EINVAL;
break;
}
*rtrim = '\0';
strncpy(&option[optionpos], ltrim, linelen);
option[optionpos + linelen] = '\0';
if (contline)
optionpos += linelen;
else {
if ((ret = config_opt_line(cfg, option)) != 0) {
fprintf(stderr, "wtperf: %s: %d: parse error\n",
filename, linenum);
break;
}
optionpos = 0;
}
}
if (ret == 0 && optionpos > 0) {
fprintf(stderr, "wtperf: %s: %d: last line continues\n",
filename, linenum);
ret = EINVAL;
goto err;
}
err: if (fd != -1)
(void)close(fd);
if (file_buf != NULL)
free(file_buf);
return (ret);
}
/*
* config_opt_line --
* Parse a single line of config options. Continued lines have already
* been joined.
*/
int
config_opt_line(CONFIG *cfg, const char *optstr)
{
WT_CONFIG_ITEM k, v;
WT_CONFIG_PARSER *scan;
int ret, t_ret;
if ((ret = wiredtiger_config_parser_open(
NULL, optstr, strlen(optstr), &scan)) != 0) {
lprintf(cfg, ret, 0, "Error in config_scan_begin");
return (ret);
}
while (ret == 0) {
if ((ret = scan->next(scan, &k, &v)) != 0) {
/* Any parse error has already been reported. */
if (ret == WT_NOTFOUND)
ret = 0;
break;
}
ret = config_opt(cfg, &k, &v);
}
if ((t_ret = scan->close(scan)) != 0) {
lprintf(cfg, ret, 0, "Error in config_scan_end");
if (ret == 0)
ret = t_ret;
}
return (ret);
}
/*
* config_opt_str --
* Set a single string config option.
*/
int
config_opt_str(CONFIG *cfg, const char *name, const char *value)
{
int ret;
char *optstr;
/* name="value" */
if ((optstr = malloc(strlen(name) + strlen(value) + 4)) == NULL)
return (enomem(cfg));
sprintf(optstr, "%s=\"%s\"", name, value);
ret = config_opt_line(cfg, optstr);
free(optstr);
return (ret);
}
/*
* config_sanity --
* Configuration sanity checks.
*/
int
config_sanity(CONFIG *cfg)
{
/* Various intervals should be less than the run-time. */
if (cfg->run_time > 0 &&
((cfg->checkpoint_threads != 0 &&
cfg->checkpoint_interval > cfg->run_time) ||
cfg->report_interval > cfg->run_time ||
cfg->sample_interval > cfg->run_time)) {
fprintf(stderr, "interval value longer than the run-time\n");
return (EINVAL);
}
if (cfg->table_count < 1 || cfg->table_count > 99) {
fprintf(stderr,
"invalid table count, less than 1 or greater than 99\n");
return (EINVAL);
}
if (cfg->database_count < 1 || cfg->database_count > 99) {
fprintf(stderr,
"invalid database count, less than 1 or greater than 99\n");
return (EINVAL);
}
return (0);
}
/*
* config_print --
* Print out the configuration in verbose mode.
*/
void
config_print(CONFIG *cfg)
{
WORKLOAD *workp;
u_int i;
printf("Workload configuration:\n");
printf("\tHome: %s\n", cfg->home);
printf("\tTable name: %s\n", cfg->table_name);
printf("\tConnection configuration: %s\n", cfg->conn_config);
if (cfg->sess_config != NULL)
printf("\tSession configuration: %s\n", cfg->sess_config);
printf("\t%s table: %s\n",
cfg->create ? "Creating new" : "Using existing",
cfg->table_config);
printf("\tKey size: %" PRIu32 ", value size: %" PRIu32 "\n",
cfg->key_sz, cfg->value_sz);
if (cfg->create)
printf("\tPopulate threads: %" PRIu32 ", inserting %" PRIu32
" rows\n",
cfg->populate_threads, cfg->icount);
printf("\tWorkload seconds, operations: %" PRIu32 ", %" PRIu32 "\n",
cfg->run_time, cfg->run_ops);
if (cfg->workload != NULL) {
printf("\tWorkload configuration(s):\n");
for (i = 0, workp = cfg->workload;
i < cfg->workload_cnt; ++i, ++workp)
printf("\t\t%" PRId64 " threads (inserts=%" PRId64
", reads=%" PRId64 ", updates=%" PRId64 ")\n",
workp->threads,
workp->insert, workp->read, workp->update);
}
printf("\tCheckpoint threads, interval: %" PRIu32 ", %" PRIu32 "\n",
cfg->checkpoint_threads, cfg->checkpoint_interval);
printf("\tReporting interval: %" PRIu32 "\n", cfg->report_interval);
printf("\tSampling interval: %" PRIu32 "\n", cfg->sample_interval);
printf("\tVerbosity: %" PRIu32 "\n", cfg->verbose);
}
/*
* pretty_print --
* Print out lines of text for a 80 character window.
*/
static void
pretty_print(const char *p, const char *indent)
{
const char *t;
for (;; p = t + 1) {
if (strlen(p) <= 70)
break;
for (t = p + 70; t > p && *t != ' '; --t)
;
if (t == p) /* No spaces? */
break;
printf("%s%.*s\n",
indent == NULL ? "" : indent, (int)(t - p), p);
}
if (*p != '\0')
printf("%s%s\n", indent == NULL ? "" : indent, p);
}
/*
* config_opt_usage --
* Configuration usage error message.
*/
static void
config_opt_usage(void)
{
size_t i, nopt;
const char *defaultval, *typestr;
pretty_print(
"The following are options settable using -o or -O, showing the "
"type and default value.\n", NULL);
pretty_print(
"String values must be enclosed in \" quotes, boolean values must "
"be either true or false.\n", NULL);
nopt = sizeof(config_opts)/sizeof(config_opts[0]);
for (i = 0; i < nopt; i++) {
defaultval = config_opts[i].defaultval;
typestr = "string";
switch (config_opts[i].type) {
case BOOL_TYPE:
typestr = "boolean";
if (strcmp(defaultval, "0") == 0)
defaultval = "false";
else
defaultval = "true";
break;
case CONFIG_STRING_TYPE:
case STRING_TYPE:
break;
case INT_TYPE:
typestr = "int";
break;
case UINT32_TYPE:
typestr = "unsigned int";
break;
}
printf("%s (%s, default=%s)\n",
config_opts[i].name, typestr, defaultval);
pretty_print(config_opts[i].description, "\t");
}
}
/*
* usage --
* wtperf usage print, no error.
*/
void
usage(void)
{
printf("wtperf [-C config] "
"[-H mount] [-h home] [-O file] [-o option] [-T config]\n");
printf("\t-C <string> additional connection configuration\n");
printf("\t (added to option conn_config)\n");
printf("\t-H <mount> configure Helium volume mount point\n");
printf("\t-h <string> Wired Tiger home must exist, default WT_TEST\n");
printf("\t-O <file> file contains options as listed below\n");
printf("\t-o option=val[,option=val,...] set options listed below\n");
printf("\t-T <string> additional table configuration\n");
printf("\t (added to option table_config)\n");
printf("\n");
config_opt_usage();
}
|