Skip Menu |

This queue is for tickets about the Bot-BasicBot-Pluggable CPAN distribution.

Report information
The Basics
Id: 3258
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Bot-BasicBot-Pluggable

People
Owner: TOMI [...] cpan.org
Requestors: davh [...] davh.dk
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.05
Fixed in: (no value)



Subject: Dataloss when server crashes or module reloads
->save() should be called on every module every xx minuttes and also on reload. Second, instead of just overwriting the storable file, it should be crash safe and save it in another file and then move it.
[CINE - Fri Aug 15 13:30:16 2003]: Show quoted text
> ->save() should be called on every module every xx minuttes and also > on reload.
No, the module should call save when it's (a) changed something and (b) in a consistent state. Show quoted text
> Second, instead of just overwriting the storable file, it should be > crash safe and save it in another file and then move it.
this is true.
Hello, thanks for the bug report. Bot::BasicBot::Store::Storable does now first write the new data to a temporary file and then move it to the original filename to prevent data loss. I already checked it in the git repository and it will be part of our next release to CPAN. Best wishes, Mario