This commit is contained in:
Alexey Milovidov 2013-08-24 08:01:19 +00:00
parent e54ee51124
commit 482bc803fd

View File

@ -64,9 +64,8 @@ public:
writeData(column.name, *column.type, *column.column, offset_columns);
}
index_offset = rows % storage.index_granularity
? (storage.index_granularity - rows % storage.index_granularity)
: 0;
size_t written_for_last_mark = (storage.index_granularity - index_offset + rows) % storage.index_granularity;
index_offset = (storage.index_granularity - written_for_last_mark) % storage.index_granularity;
}
void writeSuffix()