Fixed bug that only occurs during nightly (more thorough) regression runs; stack allocation was failing.
This commit is contained in:
parent
bd4f5c38f2
commit
1e4f3937fd
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue