mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #26808 from amosbird/safe2
Make sure table is readonly when restarting fails.
This commit is contained in:
commit
168edaed73
@ -90,6 +90,8 @@ void ReplicatedMergeTreeRestartingThread::run()
|
||||
/// The exception when you try to zookeeper_init usually happens if DNS does not work. We will try to do it again.
|
||||
tryLogCurrentException(log, __PRETTY_FUNCTION__);
|
||||
|
||||
/// Here we're almost sure the table is already readonly, but it doesn't hurt to enforce it.
|
||||
setReadonly();
|
||||
if (first_time)
|
||||
storage.startup_event.set();
|
||||
task->scheduleAfter(retry_period_ms);
|
||||
|
Loading…
Reference in New Issue
Block a user