summaryrefslogtreecommitdiff
path: root/test/format/wts.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-01-19 20:33:22 -0500
committerKeith Bostic <keith@wiredtiger.com>2016-01-19 20:33:22 -0500
commite2ba70597a91800325d793d256fbe3b89cad0609 (patch)
tree26aa5f2c752590b3c110a5f7bbf27c38fcc1e20e /test/format/wts.c
parent2f1d50a1dda50062d215ecefdec86f52842f682e (diff)
downloadmongo-e2ba70597a91800325d793d256fbe3b89cad0609.tar.gz
WT-2287: WT_SESSION.rebalance
Use a static buffer for the wiredtiger_open configuration, that way we don't have to free it to make clang LeakSanitizer happy.
Diffstat (limited to 'test/format/wts.c')
-rw-r--r--test/format/wts.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/format/wts.c b/test/format/wts.c
index b0e037ccf93..b75a0c793eb 100644
--- a/test/format/wts.c
+++ b/test/format/wts.c
@@ -136,12 +136,8 @@ wts_open(const char *home, int set_api, WT_CONNECTION **connp)
*connp = NULL;
-#define WIREDTIGER_OPEN_CONFIG_LEN (4 * 1024)
- if ((g.wiredtiger_open_config =
- calloc(WIREDTIGER_OPEN_CONFIG_LEN, sizeof(char))) == NULL)
- die(ENOMEM, "calloc");
config = p = g.wiredtiger_open_config;
- end = config + WIREDTIGER_OPEN_CONFIG_LEN;
+ end = config + sizeof(g.wiredtiger_open_config);
p += snprintf(p, REMAIN(p, end),
"create,checkpoint_sync=false,cache_size=%" PRIu32 "MB",