upas/fs: allow msgincref() with mb->refs == 0
this can happen when the on the final sync when the mailbox is being freed: freembox -> mboxdecref -> syncmbox -> wridxfile -> pridx -> insurecache -> msgincref
This commit is contained in:
parent
1dcf853fc0
commit
5a5d3e0414
1 changed files with 1 additions and 1 deletions
|
@ -1124,7 +1124,7 @@ flagmessages(int argc, char **argv)
|
|||
void
|
||||
msgincref(Mailbox *mb, Message *m)
|
||||
{
|
||||
assert(mb->refs > 0);
|
||||
assert(mb->refs >= 0);
|
||||
for(;; m = m->whole){
|
||||
assert(m->refs >= 0);
|
||||
m->refs++;
|
||||
|
|
Loading…
Reference in a new issue