diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-05-28 14:32:09 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-05-28 14:32:17 +0200 |
commit | 571a786b9b6e18a861de4767df3ca7fe1147631f (patch) | |
tree | 5a76a70bdf466d5a5a868c410797656cc19d5732 /src/mod_push_sql.erl | |
parent | Don't check mod_register restrictions in 'register' command (diff) |
Change implementation of mod_offline use_mam_for_storage19.05
Previous version was trying to determine range of messages that should
be fetched from mam by storing time when last user resource disconnected.
But that had couple edge cases that could cause problems, for example in
case of node crash we could not store information about user disconnect
and with that we didn't have data to initiate mam query.
New version don't track user disconnects, but simply ensure that we have
timestamp of first message that is gonna be put in storage, after some
measurements cost of that check with caching on top is not that costly,
and as much more robust i decided to introduce that change.
Diffstat (limited to 'src/mod_push_sql.erl')
0 files changed, 0 insertions, 0 deletions