]> Sergey Matveev's repositories - public-inbox.git/commit
lei_mail_sync: mv_src: use transaction, check UNIQUE
authorEric Wong <e@80x24.org>
Thu, 21 Oct 2021 21:10:31 +0000 (21:10 +0000)
committerEric Wong <e@80x24.org>
Fri, 22 Oct 2021 00:54:50 +0000 (00:54 +0000)
commit2c354e17694da744c6dc1ab19c14af3d456b28bb
tree192dab7aba9eff77833050cb9b3d7957cb9690dd
parent17a178cd376fc132370ec4a172ce9dc5f71d8622
lei_mail_sync: mv_src: use transaction, check UNIQUE

We need a transaction across two SQL statements so readers
(which don't use flock) will see the result as atomic.

This may help against some occasional test failures I'm seeing
from t/lei-auto-watch.t and t/lei-watch.t, or make the problem
more apparent.
lib/PublicInbox/LeiMailSync.pm