diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2020-04-17 15:30:28 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2020-04-17 15:30:28 +0200 |
commit | 22980ed8a569df7933cbb2e968db8d0aebb2f16e (patch) | |
tree | 79a0e48dd3f90590fedb9673ad555260db900b13 /src/ejabberd_ctl.erl | |
parent | Update mysql driver to get rid of warning (diff) |
Restart offline pop_messages when there is mismatch between select and delete
When another connection is inserting something to spool at this same time
as we do pop_messages, it's possible that insert will happen between we
fetch messages and delete them, so we effectively will delete it without
delivering it to client. This change catch this situation and restart
transaction, so we should always have consistent results.
Diffstat (limited to 'src/ejabberd_ctl.erl')
0 files changed, 0 insertions, 0 deletions