diff options
author | Eric Wong <e@80x24.org> | 2017-06-23 01:19:46 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-06-23 01:19:46 +0000 |
commit | 9be89cc9f142e237387aa466f5c3d9fb75b3dd9e (patch) | |
tree | c37d2ed3e7f1d4cbaede514471482a04b5d25597 /lib/PublicInbox/Msgmap.pm | |
parent | 403177efccc2b1c3883eb7b7dd3985d947828481 (diff) | |
download | public-inbox-9be89cc9f142e237387aa466f5c3d9fb75b3dd9e.tar.gz |
This prevents public-inbox-watch from dying when reloading (and thus rescanning) already-imported directories.
Diffstat (limited to 'lib/PublicInbox/Msgmap.pm')
-rw-r--r-- | lib/PublicInbox/Msgmap.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm index a49b61e8..7e0f34a4 100644 --- a/lib/PublicInbox/Msgmap.pm +++ b/lib/PublicInbox/Msgmap.pm @@ -179,7 +179,7 @@ sub id_batch { sub mid_set { my ($self, $num, $mid) = @_; my $sth = $self->{mid_set} ||= do { - my $sql = 'INSERT INTO msgmap (num, mid) VALUES (?,?)'; + my $sql = 'INSERT OR IGNORE INTO msgmap (num, mid) VALUES (?,?)'; $self->{dbh}->prepare($sql); }; $sth->execute($num, $mid); |