提交 856962b2 编写于 作者: A Alexey Milovidov

Fixed test

上级 24a8bfe0
......@@ -75,7 +75,7 @@ namespace
void finalize() override
{
WriteBufferFromS3::finalize();
writeKeyToFile(metadata_path, s3_path);
writeKeyToFile(s3_path, metadata_path);
finalized = true;
}
......@@ -332,10 +332,10 @@ String DiskS3::getS3Path(const String & path) const
String DiskS3::getRandomName() const
{
std::uniform_int_distribution<int> distribution('a', 'z');
String name(32, ' '); /// The number of bits of entropy should be not less than 128.
for (auto & c : name)
String res(32, ' '); /// The number of bits of entropy should be not less than 128.
for (auto & c : res)
c = distribution(thread_local_rng);
return name;
return res;
}
bool DiskS3::tryReserve(UInt64 bytes)
......
<yandex>
<shutdown_wait_unfinished>3</shutdown_wait_unfinished>
<logger>
<level>trace</level>
<log>/var/log/clickhouse-server/log.log</log>
<errorlog>/var/log/clickhouse-server/log.err.log</errorlog>
<size>1000M</size>
<count>10</count>
<stderr>/var/log/clickhouse-server/stderr.log</stderr>
<stdout>/var/log/clickhouse-server/stdout.log</stdout>
</logger>
</yandex>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册