comparison util/datamanager.lua @ 14019:625372ca6bfe

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 19 Dec 2025 22:51:07 +0100
parents 7ffb2d3ab50b
children 604bed81808e
comparison
equal deleted inserted replaced
14017:1e01b91cf94d 14019:625372ca6bfe
272 272
273 local index_fmt, index_item_size, index_magic; 273 local index_fmt, index_item_size, index_magic;
274 if string.packsize then 274 if string.packsize then
275 index_fmt = "T"; -- offset to the end of the item, length can be derived from two index items 275 index_fmt = "T"; -- offset to the end of the item, length can be derived from two index items
276 index_item_size = string.packsize(index_fmt); 276 index_item_size = string.packsize(index_fmt);
277 index_magic = string.pack(index_fmt, 7767639 + 1); -- Magic string: T9 for "prosody", version number 277 index_magic = string.pack(index_fmt, 7767639 + 2 + index_item_size); -- Magic string: T9 for "prosody", version number
278 end 278 end
279 279
280 local function list_append(username, host, datastore, data) 280 local function list_append(username, host, datastore, data)
281 if not data then return; end 281 if not data then return; end
282 if callback(username, host, datastore) == false then return true; end 282 if callback(username, host, datastore) == false then return true; end