diff options
author | Eric Wong <e@80x24.org> | 2023-11-13 13:15:44 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-13 21:55:04 +0000 |
commit | d6beefee49df29165fcb720e645e6466b3155cc1 (patch) | |
tree | bb7da0847070c1b2baa0c8434e9f3ac7f8d77119 /lib/PublicInbox/CidxComm.pm | |
parent | 36a7d8d92fb0e7474095c927de1d2d3f5f0292a5 (diff) | |
download | public-inbox-d6beefee49df29165fcb720e645e6466b3155cc1.tar.gz |
Prune can get rid of invalid commits while indexing can add new candidates for association, so we don't dump coderepo roots for association until those are squared away. However, we can dump inbox info since we don't touch inboxes while -cindex is running.
Diffstat (limited to 'lib/PublicInbox/CidxComm.pm')
-rw-r--r-- | lib/PublicInbox/CidxComm.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/CidxComm.pm b/lib/PublicInbox/CidxComm.pm index c7ab3c10..80a235e9 100644 --- a/lib/PublicInbox/CidxComm.pm +++ b/lib/PublicInbox/CidxComm.pm @@ -13,8 +13,8 @@ use parent qw(PublicInbox::DS); use PublicInbox::Syscall qw(EPOLLIN EPOLLONESHOT); sub new { - my ($cls, $rd, $cidx) = @_; - my $self = bless { cidx => $cidx }, $cls; + my ($cls, $rd, $cidx, $drs) = @_; + my $self = bless { cidx => $cidx, drs => $drs }, $cls; $self->SUPER::new($rd, EPOLLIN|EPOLLONESHOT); } @@ -22,7 +22,7 @@ sub event_step { my ($self) = @_; my $rd = $self->{sock} // return warn('BUG?: no {sock}'); $self->close; # EPOLL_CTL_DEL - delete($self->{cidx})->cidx_read_comm($rd); + delete($self->{cidx})->cidx_read_comm($rd, delete $self->{drs}); } 1; |