tidb: add comment

This commit is contained in:
siddontang
2015-09-09 12:01:12 +08:00
parent 7e5045674c
commit 533e26357b

View File

@ -366,6 +366,10 @@ func newdriverRows(rs rset.Recordset) *driverRows {
}
r.wg.Add(1)
go func() {
// We may change the whole implementation later, so here just using WaitGroup
// to solve issue https://github.com/pingcap/tidb/issues/57
// But if we forget close rows and do commit later, we may still meet this panic
// with very little probability.
defer r.wg.Done()
err := io.EOF
if e := r.rs.Do(func(data []interface{}) (bool, error) {