go/store/datas/pull: puller.go: Avoid writing empty table files.

This commit is contained in:
Aaron Son
2022-03-31 14:15:46 -07:00
parent 096269b291
commit a94c1421f4
+1 -1
View File
@@ -411,7 +411,7 @@ func (p *Puller) Pull(ctx context.Context) error {
}
}
if p.wr != nil {
if p.wr != nil && p.wr.Size() > 0 {
select {
case completedTables <- FilledWriters{p.wr}:
case <-ctx.Done():