diff options
author | Eric Wong <e@80x24.org> | 2020-12-15 02:02:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-17 19:13:15 +0000 |
commit | c1b98f98edfc8a023609890a1cfe856579819926 (patch) | |
tree | 70c7f3bac77e9a9d6d6a6a91e4707d4f483704d4 /lib/PublicInbox/V2Writable.pm | |
parent | 75ffc6a266699e465471adf5992d36a1db8dc1ae (diff) | |
download | public-inbox-c1b98f98edfc8a023609890a1cfe856579819926.tar.gz |
When checkpointing and yielding the lock to other processes, we need to ensure any open DB statement handles are closed, since they reference and prevent DB FDs from being closed and unlocked. And clean up some progress reporting while we're at it.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 97dbf328..992305c5 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -896,6 +896,9 @@ sub reindex_checkpoint ($$) { # allow -watch or -mda to write... $self->idx_init($sync->{-opt}); # reacquire lock + if (my $intvl = $sync->{check_intvl}) { # eidx + $sync->{next_check} = PublicInbox::DS::now() + $intvl; + } $mm_tmp->atfork_parent if $mm_tmp; } |