]> Sergey Matveev's repositories - public-inbox.git/commit
lei: commit store on interrupted partial imports
authorEric Wong <e@80x24.org>
Thu, 21 Apr 2022 11:59:06 +0000 (11:59 +0000)
committerEric Wong <e@80x24.org>
Fri, 22 Apr 2022 03:05:56 +0000 (03:05 +0000)
commit7e4bd71efcf3bf61216ec1a7577e33be5f95b8a9
tree25569363d09dd1d047a2e8e158c1a5ccfd1a9e1d
parentd362af89d8019ff12d3550c83de2c3aa5d9f095b
lei: commit store on interrupted partial imports

This change prevents lingering shard and git-fast-import
processes from remaining after interrupted "lei import" (and
similar).  It also reduces the likelyhood of data-loss in case
of subsequent abnormal termination of the daemon.

I think this is the least surprising way to handle users
prematurely aborting imports or other similar operations which
write to lei/store and will result in reduced bandwidth waste
for users with intermittent connections.  This is because the
lei/store processes may be shared by parallel "lei import"
callers, and commits done by any "lei import" caller will
inevitably trigger writes for all of them.
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiImportKw.pm
lib/PublicInbox/LeiNoteEvent.pm
lib/PublicInbox/LeiPmdir.pm