]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchIdxShard.pm
www_stream: sh-friendly .onion URLs wrapping
[public-inbox.git] / lib / PublicInbox / SearchIdxShard.pm
index 1598faebdc9b53b621ef369b9a249198723ca705..8635f5858a8ac37b14c6707b412ce69a6d828d08 100644 (file)
@@ -78,8 +78,9 @@ sub shard_close {
 sub shard_over_check {
        my ($self, $over) = @_;
        if ($self->{-ipc_req} && $over->{dbh}) {
-               # can't send DB handles over IPC
-               $over = ref($over)->new($over->{dbh}->sqlite_db_filename);
+               # can't send DB handles over IPC, and use read-only to avoid
+               # create_tables lock conflict:
+               $over = PublicInbox::Over->new($over->{dbh}->sqlite_db_filename)
        }
        $self->ipc_do('over_check', $over);
 }