int num_bad_rows = 0;
cdb_rewind(which_cdb);
- while (ckv = cdb_next_item(which_cdb), ckv.val.ptr!=NULL) {
+ while (ckv = cdb_next_item(which_cdb), ckv.val.ptr!=NULL) { // always read through to the end
// Call the export function registered to this table
export_functions[which_cdb](which_cdb, ckv);
}