Commit Graph

71 Commits (5c1d94de1b67353da7e2c348379c8a8509a9e66a)

Author SHA1 Message Date
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
Kim Alvefur 161a78b35b util.datamanager: Add missing mode flag to seek call 14 years ago
Kim Alvefur 1c23a9b7a0 util.datamanager: Remove a few unused imports 14 years ago
Kim Alvefur 79e7a7cac4 util.datamanager: Write to a temporary file and atomically move it into place 14 years ago
Kim Alvefur ce88f1c98c util.datamanager: Use pposix.fallocate() to make sure appends succeed. Also add a fallback fallocate() 14 years ago
Kim Alvefur bf14c1db60 util.datamanager: Add function for removing all data belonging to a user 14 years ago
Kim Alvefur 8b514a0692 util.datamanager: Add function for listing stores 14 years ago
Matthew Wild e89b006f03 Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages 14 years ago
Florian Zeitz d49b9bc2ab Eliminate direct setfenv usage 14 years ago
James Callahan b1a0c2c1a8 util/datamanager: Use package.config to figure out directory seperator 14 years ago
Matthew Wild 327a174479 util.datamanager: Change from 'Failed to load' to 'Assuming empty' for data store files that do not seem to exist 15 years ago
Matthew Wild 99bfcca212 util.datamanager: Handle gracefully the lack of prosody.paths.data 15 years ago
Matthew Wild fb8362bbee util.datamanager: Use prosody.paths.data as the initial value for data_path 15 years ago
Waqas Hussain e74066417c util.datamanager: Return an error string when pcall fails on a loaded list file. 15 years ago
Waqas Hussain fc496f1fd1 util.datamanager: When failing to load a list file, and the file exists, log an error, and return nil, error. 15 years ago
Waqas Hussain d1d5bb6d1c util.datamanager: Return an error string when pcall fails on a loaded list file. 15 years ago
Waqas Hussain 899dfc6266 util.datamanager: When failing to load a list file, and the file exists, log an error, and return nil, error. 15 years ago
Waqas Hussain 42f63b21d7 util.datamanager: Return an error string when failing to save. 16 years ago
Waqas Hussain 4499df4f45 util.datamanager: When failing to load a file, and the file exists, return nil, error. 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild 942fd3d965 Backed out changeset cb1f9266130b: better way to achieve this to be committed Real Soon Now. 16 years ago
Waqas Hussain 3b288052d5 util.datamanager: Added support for hooks to override behavior. 16 years ago
Matthew Wild d3a7681f7f util.datamanager: Use pposix.mkdir if available 16 years ago
Matthew Wild d930baaa0c util.datamanager: Store data stores with no host in '_global' folder 16 years ago
Matthew Wild 49916630b9 util.datamanager: Replace popen(mkdir) with lfs.mkdir, keeping the just-in-time creation until we have the new datamanager API 16 years ago
Waqas Hussain c1e71bdec8 datamanager: Fixed logging errors on deletion of datastores not owned by a user@host 17 years ago
Matthew Wild 118883d655 Remove version number from copyright headers 17 years ago
Waqas Hussain 9dd7b702f0 datamanager: Fixed incorrect callback result checking 17 years ago
Matthew Wild 3e796503e1 util.datamanager: Allow multiple data storage callbacks, and allow them to modify parameters 17 years ago
Matthew Wild 6026cb4616 util.datamanager: Lower log level of 'Setting data path' to 'debug' 17 years ago
Waqas Hussain 703044ae39 Added: datamanager: Allow a callback to be installed which selectively prevents disk writes 17 years ago
Matthew Wild 39ac97e87a util.datamanager: Don't delete data when first entry in table is 'false'. My favourite bug so far. 17 years ago
Matthew Wild c80f91dc02 0.3->0.4 17 years ago
Matthew Wild c5ee166aa9 Update copyright notices for 2009 17 years ago
Matthew Wild f2d020191f 0.2->0.3 17 years ago
Matthew Wild bf3b96204d GPL->MIT! 17 years ago
Matthew Wild fdebec4d23 util.datamanager: Small fix for clearer logging of data path 17 years ago
Waqas Hussain 6ace3ff794 datamanager: Change log message from type "warn" to "debug" when loading a file fails 17 years ago