mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
maybe_flush_pi_block, which is called for each cell, assumes that block_first_colname will be empty when the first cell is encountered for each partition. This didn't hold after writing partition which generated no index entry, because block_first_colname was cleared only when there way any data written into the promoted index. Fix by always clearing the name. The effect was that the promoted index entry for the next partition would be flushed sooner than necessary (still counting since the start of the previous partition) and with offset pointing to the start of the current partition. This will cause parsing error when such sstable is read through promoted index entry because the offset is assumed to point to a cell not to partition start. Fixes #1567 Message-Id: <1470909915-4400-1-git-send-email-tgrabiec@scylladb.com>