@@ -420,7 +420,7 @@ impl SyncStore {
420420 }
421421 }
422422
423- fn deployment_synced ( & self ) -> Result < ( ) , StoreError > {
423+ fn deployment_synced ( & self , block_ptr : BlockPtr ) -> Result < ( ) , StoreError > {
424424 retry:: forever ( & self . logger , "deployment_synced" , || {
425425 let event = {
426426 // Make sure we drop `pconn` before we call into the deployment
@@ -452,7 +452,8 @@ impl SyncStore {
452452 }
453453 }
454454
455- self . writable . deployment_synced ( & self . site . deployment ) ?;
455+ self . writable
456+ . deployment_synced ( & self . site . deployment , block_ptr. clone ( ) ) ?;
456457
457458 self . store . send_store_event ( & event)
458459 } )
@@ -1659,7 +1660,7 @@ impl WritableStoreTrait for WritableStore {
16591660 is_caught_up_with_chain_head : bool ,
16601661 ) -> Result < ( ) , StoreError > {
16611662 if is_caught_up_with_chain_head {
1662- self . deployment_synced ( ) ?;
1663+ self . deployment_synced ( block_ptr_to . clone ( ) ) ?;
16631664 } else {
16641665 self . writer . start_batching ( ) ;
16651666 }
@@ -1696,10 +1697,10 @@ impl WritableStoreTrait for WritableStore {
16961697 /// - Disable the time-to-sync metrics gathering.
16971698 /// - Stop batching writes.
16981699 /// - Promote it to 'synced' status in the DB, if that hasn't been done already.
1699- fn deployment_synced ( & self ) -> Result < ( ) , StoreError > {
1700+ fn deployment_synced ( & self , block_ptr : BlockPtr ) -> Result < ( ) , StoreError > {
17001701 self . writer . deployment_synced ( ) ;
17011702 if !self . is_deployment_synced . load ( Ordering :: SeqCst ) {
1702- self . store . deployment_synced ( ) ?;
1703+ self . store . deployment_synced ( block_ptr ) ?;
17031704 self . is_deployment_synced . store ( true , Ordering :: SeqCst ) ;
17041705 }
17051706 Ok ( ( ) )
0 commit comments