Fix an off-by-one flaw in a test.

This commit is contained in:
Jason Evans 2013-10-20 14:09:01 -07:00
parent 8edaf86b67
commit 0f1d8ec300

View File

@ -23,7 +23,8 @@ je_thread_start(void *arg)
size_t mib[3]; size_t mib[3];
size_t miblen = sizeof(mib) / sizeof(size_t); size_t miblen = sizeof(mib) / sizeof(size_t);
const char *dss_precs[] = {"disabled", "primary", "secondary"}; const char *dss_precs[] = {"disabled", "primary", "secondary"};
const char *dss = dss_precs[thread_ind % 4]; const char *dss = dss_precs[thread_ind %
(sizeof(dss_precs)/sizeof(char*))];
if (mallctlnametomib("arena.0.dss", mib, &miblen) != 0) { if (mallctlnametomib("arena.0.dss", mib, &miblen) != 0) {
malloc_printf("Error in mallctlnametomib()\n"); malloc_printf("Error in mallctlnametomib()\n");
abort(); abort();