@@ -9,7 +9,7 @@ use crate::{
99 vfs:: {
1010 NativeVfsHandle , SqliteTransportHandle , SqliteVfs , SqliteVfsMetrics ,
1111 SqliteVfsMetricsSnapshot , VfsConfig , VfsPreloadHintSnapshot ,
12- fetch_initial_main_page_for_registration ,
12+ fetch_initial_pages_for_registration ,
1313 } ,
1414 worker:: SqliteWorkerHandle ,
1515} ;
@@ -32,17 +32,18 @@ pub async fn open_database_from_transport(
3232 metrics : Option < Arc < dyn SqliteVfsMetrics > > ,
3333) -> Result < NativeDatabaseHandle > {
3434 let vfs_name = vfs_name_for_actor_database ( & actor_id, generation) ;
35- let initial_main_page = fetch_initial_main_page_for_registration ( transport. clone ( ) , & actor_id)
35+ let config = VfsConfig :: default ( ) ;
36+ let initial_pages = fetch_initial_pages_for_registration ( transport. clone ( ) , & actor_id, & config)
3637 . await
37- . map_err ( |e| anyhow ! ( "failed to preload sqlite main page : {e}" ) ) ?;
38+ . map_err ( |e| anyhow ! ( "failed to preload sqlite pages : {e}" ) ) ?;
3839 let vfs = Arc :: new (
39- SqliteVfs :: register_with_transport_and_initial_page (
40+ SqliteVfs :: register_with_transport_and_initial_pages (
4041 & vfs_name,
4142 transport,
4243 actor_id. clone ( ) ,
4344 rt_handle,
44- VfsConfig :: default ( ) ,
45- initial_main_page ,
45+ config ,
46+ initial_pages ,
4647 metrics. clone ( ) ,
4748 )
4849 . map_err ( |e| anyhow ! ( "failed to register sqlite VFS: {e}" ) ) ?,
0 commit comments