about summary refs log tree commit homepage
path: root/lib/PublicInbox/Over.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-26 08:17:39 +0000
committerEric Wong <e@yhbt.net>2020-08-27 10:57:25 +0000
commit22e7956e56f3a63479b894af0ee4812ff7ae025a (patch)
tree33f7162872b34c01a80be21c9b9ad6318209cfba /lib/PublicInbox/Over.pm
parent1814b1a0b78770c8ba9e7a0adef56c4c324d4064 (diff)
downloadpublic-inbox-22e7956e56f3a63479b894af0ee4812ff7ae025a.tar.gz
over: rename ->disconnect to ->dbh_close
Since we got rid of over->connect, `disconnect' no longer pairs
with it.  So name it after the `close(2)' syscall it ultimately
issues.
Diffstat (limited to 'lib/PublicInbox/Over.pm')
-rw-r--r--lib/PublicInbox/Over.pm4
1 files changed, 2 insertions, 2 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";
         }