about summary refs log tree commit homepage
path: root/lib/PublicInbox/CidxXapHelperAux.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-08-24 01:22:35 +0000
committerEric Wong <e@80x24.org>2023-08-24 07:47:53 +0000
commit6d834eeb3dafe63c3c221d5e8ccf64d1d8837a70 (patch)
treebed23c09892fd6e6c0e205116942acc6c171eb7e /lib/PublicInbox/CidxXapHelperAux.pm
parent1c8430a7fa407e476ef70a6a199983faf071d7a5 (diff)
downloadpublic-inbox-6d834eeb3dafe63c3c221d5e8ccf64d1d8837a70.tar.gz
It's now just `dump_roots' instead of `dump_shard_roots', since
this doesn't need to be tied to the concept of shards.  I'm
still shaky with C++, but intend to keep using stuff like
hsearch(3) to make life easier for C hackers :P
Diffstat (limited to 'lib/PublicInbox/CidxXapHelperAux.pm')
-rw-r--r--lib/PublicInbox/CidxXapHelperAux.pm10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/PublicInbox/CidxXapHelperAux.pm b/lib/PublicInbox/CidxXapHelperAux.pm
index c9a5ddad..f402bde0 100644
--- a/lib/PublicInbox/CidxXapHelperAux.pm
+++ b/lib/PublicInbox/CidxXapHelperAux.pm
@@ -10,12 +10,8 @@ use PublicInbox::Syscall qw(EPOLLIN);
 
 # rpipe connects to req->fp[1] in xap_helper.h
 sub new {
-        my ($cls, $rpipe, $cidx, $pfx, $associate) = @_;
-        my $self = bless {
-                cidx => $cidx,
-                pfx => $pfx,
-                associate => $associate
-        }, $cls;
+        my ($cls, $rpipe, $cidx, $pfx) = @_;
+        my $self = bless { cidx => $cidx, pfx => $pfx }, $cls;
         $rpipe->blocking(0);
         $self->SUPER::new($rpipe, EPOLLIN);
 }
@@ -36,7 +32,7 @@ sub event_step {
         my @lines = split(/^/m, $buf);
         $self->{buf} = pop @lines if substr($lines[-1], -1) ne "\n";
         for my $l (@lines) {
-                if ($l =~ /\Amset\.size=[0-9]+\n\z/) {
+                if ($l =~ /\Amset\.size=[0-9]+ nr_out=[0-9]+\n\z/) {
                         delete $self->{cidx}->{PENDING}->{$pfx};
                         $self->{cidx}->index_next;
                 }