Skip to content
Snippets Groups Projects
Unverified Commit b509ed03 authored by daviszhen's avatar daviszhen Committed by GitHub
Browse files

Drain event channel first (#967)

parent 6ff0fb65
Branches
Tags v0.1.0
No related merge requests found
......@@ -1472,9 +1472,6 @@ func (mce *MysqlCmdExecutor) LoadLoop(load *tree.Load, dbHandler engine.Database
wg.Wait()
//wait write to quit
handler.simdCsvWaitWriteRoutineToQuit.Wait()
/*
drain event channel
*/
......@@ -1498,6 +1495,9 @@ func (mce *MysqlCmdExecutor) LoadLoop(load *tree.Load, dbHandler engine.Database
}
}
//wait write to quit
handler.simdCsvWaitWriteRoutineToQuit.Wait()
//fmt.Printf("-----total row2col %s fillBlank %s toStorage %s\n",
// handler.row2col,handler.fillBlank,handler.toStorage)
//fmt.Printf("-----write batch %s reset batch %s\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment