comparison util/datamanager.lua @ 13370:971fd4cb09d4

util.datamanager: Fix missing pack format when reading first index entry Thanks MattJ
author Kim Alvefur <zash@zash.se>
date Thu, 30 Nov 2023 18:09:53 +0100
parents 2b8ec22988af
children 515ac7e8ae6d
comparison
equal deleted inserted replaced
13369:13a27043cd0f 13370:971fd4cb09d4
422 ih = nil; 422 ih = nil;
423 end 423 end
424 end 424 end
425 425
426 if ih then 426 if ih then
427 local first_length = string.unpack(ih:read(index_item_size)); 427 local first_length = string.unpack(index_fmt, ih:read(index_item_size));
428 return setmetatable({ file = ih; { start = 0; length = first_length } }, index_mt); 428 return setmetatable({ file = ih; { start = 0; length = first_length } }, index_mt);
429 end 429 end
430 430
431 local index, err = build_list_index(username, host, datastore); 431 local index, err = build_list_index(username, host, datastore);
432 if not index then 432 if not index then