Commit Graph

106 Commits (c19a8ef9ff319d31991e1dd8a23bdd9efb9389bb)

Author SHA1 Message Date
Kim Alvefur 193ed93b1c util.datamanager: Use already known index instead of measuring length each iteration 9 years ago
Kim Alvefur bcc0a4f11d util.datamanager: Log where the error came from 9 years ago
Kim Alvefur ba5133a977 util.datamanager: Rearrange locals 9 years ago
Kim Alvefur 146acdbd33 vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Kim Alvefur 72a554f915 util.datamanager: Encode the 'store' path component, preserving underscores 8 years ago
Kim Alvefur 04002ee277 util.datamanager: Remove check for file non-existence since ENOENT tells us that already 9 years ago
Kim Alvefur c92972b137 util.datamanager: Split long line [luacheck] 9 years ago
Kim Alvefur 4eedc9e06d util.datamanager: Expose atomic_store as store_raw 9 years ago
Kim Alvefur c0c7406558 util.datamanager: Use atomic store function when writing the first entry of a list 9 years ago
Kim Alvefur ed6045747c util.datamanager: Import value of ENOENT from util.pposix (if available) 9 years ago
Kim Alvefur 890c5b5f04 util.datamanager: Ignore ENOENT (no such file) when loading data 9 years ago
Kim Alvefur 088818ab0f util.datamanager: Use pposix.atomic_append 9 years ago
Kim Alvefur 58a712e247 util.datamanager: Shorter pattern 9 years ago
Kim Alvefur b0adfce172 util.datamanager: Remove extraneous decoding of + to space, which we never never encode to 9 years ago
Kim Alvefur eb67213599 util.datamanager: Use the 'base' argument to tonumber() to indicate hexadecimal 9 years ago
Kim Alvefur 2a51502adf util.datamanager: Add annotations to ignore name clashes [luacheck] 9 years ago
Kim Alvefur ebd52fa0f8 util.datamanager: Rename variables to avoid name clashes [luacheck] 9 years ago
Kim Alvefur fdc25c0acc util.datamanager: Import tostring and type (fix global access) 10 years ago
Kim Alvefur f828dae360 util.datamanager: Explicit handling of each error condition (see #632) 10 years ago
Kim Alvefur 1370ab3c3a util.datamanager: Unreference file handle after closing it to prevent trying to close it again (fixes #632) 10 years ago
Kim Alvefur 46fa454933 util.datamanager: Add append to public api 10 years ago
Kim Alvefur 6a9821a8c7 util.datamanager: Return extra location info 10 years ago
Kim Alvefur 2482f0614a util.datamanager: Make sure only strings are passed as data to append() 10 years ago
Kim Alvefur 25a50fa01a util.datamanager: Add some comments about the append function 10 years ago
Kim Alvefur 1099fb8dd7 util.datamanager: Handle potential error from :write() call 10 years ago
Kim Alvefur 93304d3439 util.datamanager: Handle potential issues from fallocate 10 years ago
Kim Alvefur da98f64639 util.datamanager: No shadowing of variable [luacheck] 10 years ago
Kim Alvefur c54585b91c util.datamanager: Skip past second check if first attemtp to open file succeeds 10 years ago
Kim Alvefur 51302e343c util.datamanager: In append() collect status when closing file handle as it may fail (eg the implied flush) 10 years ago
Kim Alvefur 0672574657 util.datamanager: Overwrite 'data' variable instead of shadownig it [luacheck] 10 years ago
Kim Alvefur 429ea15d8b util.datamanager: Factor out code for appending bytes to a file 10 years ago
Kim Alvefur 3c56b42545 util.datamanager: Fix traceback from trying to purge when storage is empty or otherwise unaccessible (fixes #496) 11 years ago
Kim Alvefur 646f9e84bc util.datamanager: Fix traceback due to %s in log message 11 years ago
Kim Alvefur 3015aac8bc 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 1c33e777ec util.datamanager: Check that the global 'prosody' exists before using it (fixes nil indexing in use outside of prosody) 11 years ago
Matthew Wild 5c21c86aab util.datamanager: Clear the cache of created directories on storage failure, and retry 13 years ago
Marco Cirillo 7e71294f67 util.datamanager: expose path decode and encode functions. 13 years ago
Kim Alvefur 82a91911a2 util.datamanager: Don't escape the name of a store 13 years ago
Kim Alvefur 94f0e1cb26 util.datamanager: Remove unused variable 13 years ago
Kim Alvefur 38daeec89e util.datamanager: Remove dead code path 13 years ago
Kim Alvefur f4717fe48c mod_storage_internal, datamanager: Add support for iterating over users with data in a store 14 years ago
Kim Alvefur f7f8f20929 storagemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with an iterator version 14 years ago
Waqas Hussain a79c507ade util.datamanager: Make the util.pposix dependency optional. 14 years ago
Kim Alvefur 4cb8031b57 util.datamanager: Ignore errors if the file is gone after removing it 14 years ago
Kim Alvefur ccb65a8971 util.datamanager: Collect errors when deleting all stores of a user, but ignore "no such file" 14 years ago
Kim Alvefur b20cc7f5d7 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 5e947f4b08 util.datamanager: Don't use os.rename on non-POSIX. It doesn't overwrite exisitng files on Windows. 14 years ago
Kim Alvefur d434226dbe util.datamanager: Add missing mode flag to seek call 14 years ago
Kim Alvefur ce55d30151 util.datamanager: Remove a few unused imports 14 years ago
Kim Alvefur f69692e11d util.datamanager: Write to a temporary file and atomically move it into place 14 years ago