Skip to content
Snippets Groups Projects
Commit 6cfefcd4 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

Do not auto upgrade schema if read only

Closes #2531
parent b6ad5140
No related merge requests found
......@@ -359,7 +359,9 @@ local function load_cfg(cfg)
end
end
end
box.schema.upgrade{auto = true}
if not box.cfg.read_only then
box.schema.upgrade{auto = true}
end
end
box.cfg = load_cfg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment