Commit Graph

110 Commits (020cd46f0341663d71ebdbd02f67032ddcb4a677)

Author SHA1 Message Date
Kim Alvefur d8fda82e40 util.datamanager: Fix iterating over "users" (thanks marc0s) 6 years ago
Kim Alvefur 0bbfb60aae util.datamanager: Ignore unused 'errno' variable [luacheck] 6 years ago
Kim Alvefur f65c017ee1 Fix various spelling mistakes [codespell] 7 years ago
Kim Alvefur 33be2cd463 util.datamanager: Use already known index instead of measuring length each iteration 9 years ago
Kim Alvefur 0f578fb9f3 util.datamanager: Log where the error came from 9 years ago
Kim Alvefur 5c4a8d13e2 util.datamanager: Rearrange locals 9 years ago
Kim Alvefur 43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Kim Alvefur 2572082717 util.datamanager: Encode the 'store' path component, preserving underscores 8 years ago
Kim Alvefur 2e06e8e75d util.datamanager: Remove check for file non-existence since ENOENT tells us that already 9 years ago
Kim Alvefur d496a96705 util.datamanager: Split long line [luacheck] 9 years ago
Kim Alvefur cb0953029e util.datamanager: Expose atomic_store as store_raw 9 years ago
Kim Alvefur c3aae40b19 util.datamanager: Use atomic store function when writing the first entry of a list 9 years ago
Kim Alvefur f0c676e8c6 util.datamanager: Import value of ENOENT from util.pposix (if available) 9 years ago
Kim Alvefur fc38b8c4f4 util.datamanager: Ignore ENOENT (no such file) when loading data 9 years ago
Kim Alvefur 7b4ad0e694 util.datamanager: Use pposix.atomic_append 9 years ago
Kim Alvefur f36fed39e8 util.datamanager: Shorter pattern 9 years ago
Kim Alvefur f0bd3ec403 util.datamanager: Remove extraneous decoding of + to space, which we never never encode to 9 years ago
Kim Alvefur e3ab638262 util.datamanager: Use the 'base' argument to tonumber() to indicate hexadecimal 9 years ago
Kim Alvefur d56bd9dbdb util.datamanager: Add annotations to ignore name clashes [luacheck] 9 years ago
Kim Alvefur c331fe1594 util.datamanager: Rename variables to avoid name clashes [luacheck] 9 years ago
Kim Alvefur baba98852d util.datamanager: Import tostring and type (fix global access) 10 years ago
Kim Alvefur afe389d870 util.datamanager: Explicit handling of each error condition (see #632) 10 years ago
Kim Alvefur fc2ad03510 util.datamanager: Unreference file handle after closing it to prevent trying to close it again (fixes #632) 10 years ago
Kim Alvefur 30b54f4ad7 util.datamanager: Add append to public api 10 years ago
Kim Alvefur 7816dfc838 util.datamanager: Return extra location info 10 years ago
Kim Alvefur 206330cea1 util.datamanager: Make sure only strings are passed as data to append() 10 years ago
Kim Alvefur 1510dd113d util.datamanager: Add some comments about the append function 10 years ago
Kim Alvefur 4b380b1cbf util.datamanager: Handle potential error from :write() call 10 years ago
Kim Alvefur be1b771edf util.datamanager: Handle potential issues from fallocate 10 years ago
Kim Alvefur 74500e9b50 util.datamanager: No shadowing of variable [luacheck] 10 years ago
Kim Alvefur 74caca930a util.datamanager: Skip past second check if first attemtp to open file succeeds 10 years ago
Kim Alvefur 8ecd4052a5 util.datamanager: In append() collect status when closing file handle as it may fail (eg the implied flush) 10 years ago
Kim Alvefur 2ccee846f2 util.datamanager: Overwrite 'data' variable instead of shadownig it [luacheck] 10 years ago
Kim Alvefur 3e9c86d509 util.datamanager: Factor out code for appending bytes to a file 10 years ago
Kim Alvefur 4beb76ca0d util.datamanager: Fix traceback from trying to purge when storage is empty or otherwise unaccessible (fixes #496) 11 years ago
Kim Alvefur 2064173f3b util.datamanager: Fix traceback due to %s in log message 11 years ago
Kim Alvefur eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 11 years ago
Kim Alvefur 158dc0f9e1 util.datamanager: Check that the global 'prosody' exists before using it (fixes nil indexing in use outside of prosody) 11 years ago
Matthew Wild f056043347 util.datamanager: Clear the cache of created directories on storage failure, and retry 13 years ago
Marco Cirillo 2e7d2a24ce util.datamanager: expose path decode and encode functions. 13 years ago
Kim Alvefur 17bfb654df util.datamanager: Don't escape the name of a store 13 years ago
Kim Alvefur 1d8297ca4f util.datamanager: Remove unused variable 13 years ago
Kim Alvefur 4d762f9cbf util.datamanager: Remove dead code path 13 years ago
Kim Alvefur 196022f3f5 mod_storage_internal, datamanager: Add support for iterating over users with data in a store 13 years ago
Kim Alvefur 07bb8a42ce storagemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with an iterator version 13 years ago
Waqas Hussain 184e6cad28 util.datamanager: Make the util.pposix dependency optional. 13 years ago
Kim Alvefur 4e9c9163be util.datamanager: Ignore errors if the file is gone after removing it 14 years ago
Kim Alvefur 40c2d90481 util.datamanager: Collect errors when deleting all stores of a user, but ignore "no such file" 14 years ago
Kim Alvefur 5539608830 util.datamanager: Try to open in read+write mode, then retry with write mode if that fails (usually because it doesn't exist) 14 years ago
Waqas Hussain 2161f2e88c util.datamanager: Don't use os.rename on non-POSIX. It doesn't overwrite exisitng files on Windows. 14 years ago