Lock on bayes
Ugo Bellavance
ugob at lubik.ca
Sat Mar 8 15:02:18 GMT 2008
Maxime Gaudreault wrote:
> Does this can cause a delay ?
>
>
>
> 10:48:19 [4926] dbg: locker: safe_lock: created
> /opt/MailScanner/etc/bayes/bayes.mutex
>
> 10:48:19 [4926] dbg: locker: safe_lock: trying to get lock on
> /opt/MailScanner/etc/bayes/bayes with 10 timeout
>
> 10:48:19 [4926] dbg: locker: safe_lock: link to
> /opt/MailScanner/etc/bayes/bayes.mutex: link ok
>
> 10:48:19 [4926] dbg: bayes: tie-ing to DB file R/W
> /opt/MailScanner/etc/bayes/bayes_toks
>
> 10:48:19 [4926] dbg: bayes: tie-ing to DB file R/W
> /opt/MailScanner/etc/bayes/bayes_seen
>
> 10:48:19 [4926] dbg: bayes: found bayes db version 3
>
> 10:48:20 [4926] dbg: bayes: learned
> 'afb0acc5fea2c9c75499b9d618a0534592059f3a at sa_generated', atime: 1204904887
>
> 10:48:20 [4926] dbg: bayes: untie-ing
>
> 10:48:21 [4926] dbg: bayes: files locked, now unlocking lock
>
> 10:48:21 [4926] dbg: locker: safe_unlock: unlocked
> /opt/MailScanner/etc/bayes/bayes.mutex
No, like anything that can be shared and most databases, a lock must be
requested when reading and writing.
More information about the MailScanner
mailing list