]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/V2Writable.pm
msgmap: ->new_file to supports $ibx arg, drop ->new
[public-inbox.git] / lib / PublicInbox / V2Writable.pm
index d04cdda6e3dc2eeaff75096fa92c25e0e96ecd0e..efcc1fc21a18e0a23ba26cf12311d7355220bd7f 100644 (file)
@@ -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;
 }