about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-25 00:11:02 +0000
committerEric Wong <e@80x24.org>2021-07-25 00:19:20 +0000
commit6896585267c269cb344b01af102f6f73602548ad (patch)
treeb44e819159d30a30b5aada4a9ee77630589fe728 /lib
parent613a1e038f9bd7b4c9287bda621b6e19eac24684 (diff)
downloadpublic-inbox-6896585267c269cb344b01af102f6f73602548ad.tar.gz
extindex: improve comment around git->async_wait_all
I found myself tempted to remove this, but it appears impossible
due to odd messages which have multiple Message-IDs.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/ExtSearchIdx.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm
index 2311161e..1c2a9758 100644
--- a/lib/PublicInbox/ExtSearchIdx.pm
+++ b/lib/PublicInbox/ExtSearchIdx.pm
@@ -937,7 +937,9 @@ EOS
                         };
                         $self->git->cat_async($smsg->{blob}, \&dd_smsg, $dd);
                 }
-                # need to wait on every single one
+                # need to wait on every single one @smsg contents can get
+                # invalidated inside dd_smsg for messages with multiple
+                # Message-IDs.
                 $self->git->async_wait_all;
 
                 if (checkpoint_due($sync)) {