mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_storage_memory: Switch from '@' prefix to '=' for chunks, '@' is used to indicate a source file name only
This commit is contained in:
parent
6b841f66fd
commit
2a36be1e9e
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ end
|
|||
|
||||
function keyval_store:set(username, data)
|
||||
if data ~= nil then
|
||||
data = envload("return "..serialize(data), "@data", {});
|
||||
data = envload("return "..serialize(data), "=(data)", {});
|
||||
end
|
||||
self.store[username or NULL] = data;
|
||||
return true;
|
||||
|
@ -47,9 +47,9 @@ function archive_store:append(username, key, value, when, with)
|
|||
end
|
||||
if is_stanza(value) then
|
||||
value = st.preserialize(value);
|
||||
value = envload("return xml"..serialize(value), "@stanza", { xml = st.deserialize })
|
||||
value = envload("return xml"..serialize(value), "=(stanza)", { xml = st.deserialize })
|
||||
else
|
||||
value = envload("return "..serialize(value), "@data", {});
|
||||
value = envload("return "..serialize(value), "=(data)", {});
|
||||
end
|
||||
local a = self.store[username or NULL];
|
||||
if not a then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue