diff options
author | Eric Wong <e@yhbt.net> | 2020-08-26 08:17:39 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-27 10:57:25 +0000 |
commit | 22e7956e56f3a63479b894af0ee4812ff7ae025a (patch) | |
tree | 33f7162872b34c01a80be21c9b9ad6318209cfba /lib/PublicInbox/OverIdx.pm | |
parent | 1814b1a0b78770c8ba9e7a0adef56c4c324d4064 (diff) | |
download | public-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/OverIdx.pm')
-rw-r--r-- | lib/PublicInbox/OverIdx.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |