diff options
author | Eric Wong <e@80x24.org> | 2020-12-04 12:09:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-26 19:45:11 +0000 |
commit | b63c27f36a44d8deb8fd775b2322ec11a6c4eabf (patch) | |
tree | 066dc9f0be9837e6a0fbde99dce94859c22238fa /lib/PublicInbox/Daemon.pm | |
parent | c39ed01a3a4c6c4634642eb875a16538aceacfc3 (diff) | |
download | public-inbox-b63c27f36a44d8deb8fd775b2322ec11a6c4eabf.tar.gz |
We must use the result of link_refs() since it can trigger merge_threads() and invalidate $old_tid. In case merge_threads() isn't triggered, link_refs() will return $old_tid anyways. When rethreading and allocating new {tid}, we also must update the row where the now-expired {tid} came from to ensure only the new {tid} is seen when reindexing subsequent messages in history. Otherwise, every subsequently reindexed+rethreaded message could end up getting a new {tid}. Reported-by: Kyle Meyer <kyle@kyleam.com> Link: https://public-inbox.org/meta/87360nlc44.fsf@kyleam.com/ (cherry picked from commit 9356ec0cc5afc95a8fd398ddf898942ef0acdb74)
Diffstat (limited to 'lib/PublicInbox/Daemon.pm')
0 files changed, 0 insertions, 0 deletions