This commit is contained in:
Michael Kolupaev 2013-02-11 11:42:36 +00:00
parent f5cac625c6
commit 19707dc7ca
2 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ private:
void dropThis();
void loadIndex();
void appendChunkToIndex(const std::string & name, size_t mark);
void appendChunkToIndex(const std::string & chunk_name, size_t mark);
};
}

View File

@ -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";
WriteBufferFromFile index(index_path, 4096, O_APPEND | O_CREAT | O_WRONLY);
writeStringBinary(name, index);
writeStringBinary(chunk_name, index);
writeIntBinary<UInt64>(mark, index);
}