You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (server_settings[ServerSetting::disable_insertion_and_mutation])
93
-
coordination.read_only = true;
94
-
95
-
if (attach)
96
-
{
97
-
/// Check that this replica is registered in keeper.
98
-
if (!zookeeper->exists(replica_path))
99
-
{
100
-
LOG_ERROR(log, "Attaching refreshable materialized view {} as read-only because znode {} is missing", view->getStorageID().getFullTableName(), replica_path);
101
-
coordination.read_only = true;
102
-
}
103
-
}
104
-
else
93
+
/// Create znodes even if it's ATTACH query. This seems weird, possibly incorrect, but
94
+
/// currently both DatabaseReplicated and DatabaseShared seem to require this behavior.
95
+
if (!replica_path_existed)
105
96
{
106
97
zookeeper->createAncestors(coordination.path);
107
-
/// Create coordination znodes if they don't exist. Register this replica, throwing if already exists.
0 commit comments