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

View File

@ -63,10 +63,9 @@ public:
const ColumnWithNameAndType & column = block.getByName(it->first); const ColumnWithNameAndType & column = block.getByName(it->first);
writeData(column.name, *column.type, *column.column, offset_columns); writeData(column.name, *column.type, *column.column, offset_columns);
} }
index_offset = rows % storage.index_granularity size_t written_for_last_mark = (storage.index_granularity - index_offset + rows) % storage.index_granularity;
? (storage.index_granularity - rows % storage.index_granularity) index_offset = (storage.index_granularity - written_for_last_mark) % storage.index_granularity;
: 0;
} }
void writeSuffix() void writeSuffix()