Commit 8816ef0d authored by Shane Snyder's avatar Shane Snyder

Small bug fixes to bgp io workload generator

parent d6fdec10
...@@ -164,7 +164,10 @@ void bgp_io_workload_get_next(int rank, struct codes_workload_op *op) ...@@ -164,7 +164,10 @@ void bgp_io_workload_get_next(int rank, struct codes_workload_op *op)
/* if no more entries are there, delete the hash table */ /* if no more entries are there, delete the hash table */
if(!rank_tbl_pop) if(!rank_tbl_pop)
qhash_finalize(rank_tbl); {
qhash_finalize(rank_tbl);
rank_tbl = NULL;
}
} }
break; break;
case CODES_WK_CLOSE: case CODES_WK_CLOSE:
...@@ -181,6 +184,7 @@ void bgp_io_workload_get_next(int rank, struct codes_workload_op *op) ...@@ -181,6 +184,7 @@ void bgp_io_workload_get_next(int rank, struct codes_workload_op *op)
case CODES_WK_OPEN: case CODES_WK_OPEN:
{ {
op->u.open.file_id = (next_wrkld->next_event).var[0]; op->u.open.file_id = (next_wrkld->next_event).var[0];
op->u.open.create_flag = 1;
} }
break; break;
case CODES_WK_READ: case CODES_WK_READ:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment