about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/Over.pm4
-rw-r--r--lib/PublicInbox/OverIdx.pm6
-rw-r--r--lib/PublicInbox/V2Writable.pm4
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/PublicInbox/Over.pm b/lib/PublicInbox/Over.pm
index 0ebc8003..a2cf9f21 100644
--- a/lib/PublicInbox/Over.pm
+++ b/lib/PublicInbox/Over.pm
@@ -72,7 +72,7 @@ sub new {
         bless { filename => $f }, $class;
 }
 
-sub disconnect {
+sub dbh_close {
         my ($self) = @_;
         if (my $dbh = delete $self->{dbh}) {
                 delete $self->{-get_art};
@@ -328,7 +328,7 @@ sub check_inodes {
                 my $st = pack('dd', $st[0], $st[1]);
 
                 # don't actually reopen, just let {dbh} be recreated later
-                disconnect($self) if $st ne ($self->{st} // $st);
+                dbh_close($self) if $st ne ($self->{st} // $st);
         } else {
                 warn "W: stat $f: $!\n";
         }
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm
index c521464a..512c5f46 100644
--- a/lib/PublicInbox/OverIdx.pm
+++ b/lib/PublicInbox/OverIdx.pm
@@ -455,10 +455,10 @@ sub rollback_lazy {
         $self->{dbh}->rollback;
 }
 
-sub disconnect {
+sub dbh_close {
         my ($self) = @_;
         die "in transaction" if $self->{txn};
-        $self->SUPER::disconnect;
+        $self->SUPER::dbh_close;
 }
 
 sub create {
@@ -470,7 +470,7 @@ sub create {
         }
         # create the DB:
         PublicInbox::Over::dbh($self);
-        $self->disconnect;
+        $self->dbh_close;
 }
 
 sub rethread_prepare {
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index c926446c..f2288904 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -679,8 +679,8 @@ sub done {
                         $err .= "shard close: $@\n" if $@;
                 }
         }
-        eval { $self->{over}->disconnect };
-        $err .= "over disconnect: $@\n" if $@;
+        eval { $self->{over}->dbh_close };
+        $err .= "over close: $@\n" if $@;
         delete $self->{bnote};
         my $nbytes = $self->{total_bytes};
         $self->{total_bytes} = 0;