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
No related branches found
No related tags found
No related merge requests found
......@@ -1472,16 +1472,13 @@ func (mce *MysqlCmdExecutor) LoadLoop(load *tree.Load, dbHandler engine.Database
wg.Wait()
//wait write to quit
handler.simdCsvWaitWriteRoutineToQuit.Wait()
/*
drain event channel
*/
drain event channel
*/
quit := false
for {
select {
case ne = <- handler.simdCsvNotiyEventChan:
case ne = <- handler.simdCsvNotiyEventChan:
default:
quit = true
}
......@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment