diff options
author | Keith Bostic <keith@wiredtiger.com> | 2016-02-20 11:15:42 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2016-02-20 11:15:42 -0500 |
commit | 4d7ac74204e3ec66bb6eeeb63886c9adf8c61ed7 (patch) | |
tree | 0487ecddfd865f25e39b70a0e7dde3cc7bd220fc | |
parent | e68f5a2e36cebab58591cb9013224984b3690bdf (diff) | |
download | mongo-4d7ac74204e3ec66bb6eeeb63886c9adf8c61ed7.tar.gz |
WT-2349: Add ability to open databases read-only
Remove a couple of "(const char *)" casts I don't think we need.
-rw-r--r-- | bench/wtperf/wtperf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c index 38f7688a47a..b6e10762d8c 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -1533,8 +1533,8 @@ close_reopen(CONFIG *cfg) lprintf(cfg, ret, 0, "Closing the connection failed"); return (ret); } - if ((ret = wiredtiger_open(cfg->home, - NULL, (const char *)cfg->reopen_config, &cfg->conn)) != 0) { + if ((ret = wiredtiger_open( + cfg->home, NULL, cfg->reopen_config, &cfg->conn)) != 0) { lprintf(cfg, ret, 0, "Re-opening the connection failed"); return (ret); } @@ -1810,8 +1810,8 @@ create_tables(CONFIG *cfg) for (i = 0; i < cfg->table_count; i++) { if (cfg->log_partial && i > 0) { - if (((ret = session->create(session, cfg->uris[i], - (const char *)cfg->partial_config)) != 0)) { + if (((ret = session->create(session, + cfg->uris[i], cfg->partial_config)) != 0)) { lprintf(cfg, ret, 0, "Error creating table %s", cfg->uris[i]); return (ret); |