diff options
author | Eric Wong <e@80x24.org> | 2021-10-07 08:29:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-08 08:35:19 +0000 |
commit | e46b24f437639e3c2cc19df4a2c875b56fe6fea7 (patch) | |
tree | 5206e0c3c9a634f0e7a240e062c16b662002478e /lib | |
parent | 3472c60fc72dfb5d1152c4015f54be1644443a20 (diff) | |
download | public-inbox-e46b24f437639e3c2cc19df4a2c875b56fe6fea7.tar.gz |
This may fix some extindex problems and should get rid of the "Can't bless non-reference value" errors.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/OverIdx.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm index 0c8a4d9e..985abbf4 100644 --- a/lib/PublicInbox/OverIdx.pm +++ b/lib/PublicInbox/OverIdx.pm @@ -158,7 +158,8 @@ SELECT $cols FROM over WHERE over.num = ? LIMIT 1 foreach (@$nums) { $sth->execute($_->[0]); - my $smsg = $sth->fetchrow_hashref; + # $cb may delete rows and invalidate nums + my $smsg = $sth->fetchrow_hashref // next; $smsg = PublicInbox::Over::load_from_row($smsg); $cb->($self, $smsg, @arg) or return; } |