diff options
author | Eric Wong <e@80x24.org> | 2021-10-12 11:47:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-12 21:46:36 +0000 |
commit | 9f02576da775abf208f5a03c03b6f7abd72596d0 (patch) | |
tree | 49d24d01fca0987281d087862e5149c60928b68a /lib/PublicInbox/V2Writable.pm | |
parent | 2a3c8d7a2c40ad9424db10d68470d8bb120bddf9 (diff) | |
download | public-inbox-9f02576da775abf208f5a03c03b6f7abd72596d0.tar.gz |
msgmap: ->new_file to supports $ibx arg, drop ->new
The original Msgmap->new API was v1-specific and not necessary. The ->new_file API now supports an $ibx object being passed to it, simplify -no_fsync use. It will also make an upcoming change easier...
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index d04cdda6..efcc1fc2 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -267,9 +267,7 @@ sub _idx_init { # with_umask callback # Now that all subprocesses are up, we can open the FDs # for SQLite: - my $mm = $self->{mm} = PublicInbox::Msgmap->new_file( - "$ibx->{inboxdir}/msgmap.sqlite3", - $ibx->{-no_fsync} ? 2 : 1); + my $mm = $self->{mm} = PublicInbox::Msgmap->new_file($ibx, 1); $mm->{dbh}->begin_work; } |