mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 02:00:49 +00:00
Merge
This commit is contained in:
parent
f5cac625c6
commit
19707dc7ca
@ -76,7 +76,7 @@ private:
|
|||||||
void dropThis();
|
void dropThis();
|
||||||
|
|
||||||
void loadIndex();
|
void loadIndex();
|
||||||
void appendChunkToIndex(const std::string & name, size_t mark);
|
void appendChunkToIndex(const std::string & chunk_name, size_t mark);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -109,11 +109,11 @@ void StorageChunks::loadIndex()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void StorageChunks::appendChunkToIndex(const std::string & name, size_t mark)
|
void StorageChunks::appendChunkToIndex(const std::string & chunk_name, size_t mark)
|
||||||
{
|
{
|
||||||
String index_path = path + escapeForFileName(name) + "/chunks.chn";
|
String index_path = path + escapeForFileName(name) + "/chunks.chn";
|
||||||
WriteBufferFromFile index(index_path, 4096, O_APPEND | O_CREAT | O_WRONLY);
|
WriteBufferFromFile index(index_path, 4096, O_APPEND | O_CREAT | O_WRONLY);
|
||||||
writeStringBinary(name, index);
|
writeStringBinary(chunk_name, index);
|
||||||
writeIntBinary<UInt64>(mark, index);
|
writeIntBinary<UInt64>(mark, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user