Fixed bug that only occurs during nightly (more thorough) regression runs; stack allocation was failing.

This commit is contained in:
Sears Russell 2007-10-30 16:26:29 +00:00
parent bd4f5c38f2
commit 1e4f3937fd

View file

@ -101,7 +101,8 @@ static pthread_mutex_t ralloc_mutex;
void * workerThreadWriting(void * q) {
int offset = *(int*)q;
recordid rids[RECORDS_PER_THREAD];
recordid * rids;
rids = malloc(RECORDS_PER_THREAD * sizeof(recordid));
int xid = Tbegin();
int num_ops = 0;
@ -171,7 +172,7 @@ void * workerThreadWriting(void * q) {
}
Tcommit(xid);
free(rids);
return NULL;
}