diff options
author | Eric Wong <e@yhbt.net> | 2020-07-24 05:56:00 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-25 20:48:18 +0000 |
commit | 5ce7e26b1d7efc2fb1bb5310a756e7c873145246 (patch) | |
tree | 91537b2a3319ac59c4a7bdb6b75db2d0a00c831f /t | |
parent | 9dd7f90d71ee6d4ba533aee341c9dc44b06fcc6e (diff) | |
download | public-inbox-5ce7e26b1d7efc2fb1bb5310a756e7c873145246.tar.gz |
searchidx: rename _xdb_{acquire,release} => idx_
The "xdb" prefix was inaccurate since it's used by indexlevel=basic, which is Xapian-free. The '_' (underscore) prefix was also wrong for a method which is called across package boundaries.
Diffstat (limited to 't')
-rw-r--r-- | t/inbox_idle.t | 4 | ||||
-rw-r--r-- | t/search.t | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/t/inbox_idle.t b/t/inbox_idle.t index f754e0fc..61287200 100644 --- a/t/inbox_idle.t +++ b/t/inbox_idle.t @@ -28,9 +28,9 @@ for my $V (1, 2) { my $im = $ibx->importer(0); if ($V == 1) { my $sidx = PublicInbox::SearchIdx->new($ibx, 1); - $sidx->_xdb_acquire; + $sidx->idx_acquire; $sidx->set_indexlevel; - $sidx->_xdb_release; # allow watching on lockfile + $sidx->idx_release; # allow watching on lockfile } my $pi_config = PublicInbox::Config->new(\<<EOF); publicinbox.inbox-idle.inboxdir=$inboxdir @@ -21,8 +21,8 @@ ok($@, "exception raised on non-existent DB"); my $rw = PublicInbox::SearchIdx->new($ibx, 1); $ibx->with_umask(sub { - $rw->_xdb_acquire; - $rw->_xdb_release; + $rw->idx_acquire; + $rw->idx_release; }); $rw = undef; my $ro = PublicInbox::Search->new($ibx); |