We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6175441 commit 34895bfCopy full SHA for 34895bf
import.go
@@ -213,7 +213,17 @@ func (i *Importer) Commit() error {
213
len(i.stack))
214
}
215
216
- err := i.batch.WriteSync()
+ // Wait for previous batch.
217
+ var err error
218
+ if i.inflightCommit != nil {
219
+ err = <-i.inflightCommit
220
+ i.inflightCommit = nil
221
+ }
222
+ if err != nil {
223
+ return err
224
225
+
226
+ err = i.batch.WriteSync()
227
if err != nil {
228
return err
229
0 commit comments