add explanatory comment and move comment to correct spot

This commit is contained in:
Matt Jaffee 2018-09-13 10:41:36 -05:00
parent f006df7758
commit af7d405b11
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -1330,9 +1330,12 @@ func (f *fragment) bulkImport(rowIDs, columnIDs []uint64) error {
return fmt.Errorf("mismatch of row/column len: %d != %d", len(rowIDs), len(columnIDs))
}
// Disconnect op writer so we don't append updates.
// Create a temporary bitmap which will be populated by rowIDs and columnIDs
// and then merged into the existing fragment's bitmap.
localBitmap := roaring.NewBitmap()
// Disconnect op writer so we don't append updates.
localBitmap.OpWriter = nil
// Process every bit.
// If an error occurs then reopen the storage.
lastID := uint64(0)