about summary refs log tree commit homepage
path: root/t/extsearch.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-11 08:06:20 +0000
committerEric Wong <e@80x24.org>2021-10-12 03:40:44 +0000
commited0167d2a851b4f5128f57ad60309a0b76e62cfa (patch)
tree7d5562ff023f007d679615bf393da0c631ba6b7a /t/extsearch.t
parentab257671a4112044582a333cdb50cc9067adab14 (diff)
downloadpublic-inbox-ed0167d2a851b4f5128f57ad60309a0b76e62cfa.tar.gz
When unref-ing a blob from xref3, make sure the "preferred"
smsg->{blob} doesn't point to the blob we just unrefed.  This
is necessary because we periodically checkpoint our extindex
process to allow -watch and -mda processes to run.

This also gets rid of a lot of redundant code for ->remove_xref3,
since it's all handled in ExtSearchIdx, now.
Diffstat (limited to 't/extsearch.t')
-rw-r--r--t/extsearch.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/extsearch.t b/t/extsearch.t
index 896e2704..1b6235ba 100644
--- a/t/extsearch.t
+++ b/t/extsearch.t
@@ -375,7 +375,7 @@ if ('reindex catches content bifurcation') {
         is($oidx->max, $oldmax, 'oidx->max unchanged');
         $oidx->dbh_close;
         ok(run_script([qw(-extindex --reindex --all), "$home/extindex"],
-                undef, $opt), 'extindex --reindex');
+                undef, $opt), 'extindex --reindex') or diag explain($opt);
         $oidx->dbh;
         ok($oidx->max > $oldmax, 'oidx->max bumped');
         like($err, qr/split into 2 due to deduplication change/,