vektra / vega

A distributed mailbox system
BSD 3-Clause "New" or "Revised" License
315 stars 13 forks source link

Mailboxes re-declared N times after N restarts of vegad #5

Closed betawaffle closed 9 years ago

betawaffle commented 9 years ago

When I restart vegad, it declares each mailbox N times, where N is the number of times vegad has been restarted since the said mailbox was first declared. One side-effect of this is abandoned mailboxes are resurrected after a restart.

After a bit of testing, it seems that disk.MailboxNames() is returning N copies of the mailboxes, which makes me think N copies are being written to disk, perhaps during a shutdown.

evanphx commented 9 years ago

This is fixed by #7