aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-03-12 16:10:44 +0000
committerMatthew Wild <mwild1@gmail.com>2020-03-12 16:10:44 +0000
commit818722afb83b3c61c49e75fae338a4140414f84f (patch)
tree1fadd0b39333962ace31e865682d5878e48add75
parent64bb781dfec9b44618da58991aab292b1e360be1 (diff)
downloadprosody-818722afb83b3c61c49e75fae338a4140414f84f.tar.gz
prosody-818722afb83b3c61c49e75fae338a4140414f84f.zip
MUC: Switch to new storage format by default
Changing the default setting of `new_muc_storage_format` from false to true. The code supports reading both formats since 0.11, but servers with MUCs stored using the new format will not be able to downgrade to 0.10 or earlier. The new format is clearer (less nesting for the most commonly-accessed data), and combined with the new map-store methods, allows for some operations to become more efficient (such as finding out which MUCs on a service a given user is affiliated with).
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 5f45498a..2c9139d1 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1536,7 +1536,7 @@ function _M.new_room(jid, config)
}, room_mt);
end
-local new_format = module:get_option_boolean("new_muc_storage_format", false);
+local new_format = module:get_option_boolean("new_muc_storage_format", true);
function room_mt:freeze(live)
local frozen, state;