@@ -3685,7 +3685,7 @@ static void btech_store_repair_event(MuxEvent *event, void *context_argument) {
36853685 context -> result = -1 ;
36863686}
36873687
3688- /* Mirror map dynamic state and repair queues without changing legacy reads . */
3688+ /* Store map dynamic state and repair queues in the SQLite snapshot . */
36893689static int btech_persistence_store_special_state (
36903690 sqlite3 * sqlite , PersistenceContext * persistence , void * extension_context ) {
36913691 BtechContext * btech = extension_context ;
@@ -3861,15 +3861,6 @@ static int btech_persistence_store_special_state(
38613861 return result ;
38623862}
38633863
3864- /* Reads remain on the legacy files during this first BTech dual-write slice. */
3865- static int btech_persistence_preload_special_state (
3866- sqlite3 * sqlite , PersistenceContext * persistence , void * extension_context ) {
3867- (void )persistence ;
3868- (void )extension_context ;
3869- (void )sqlite ;
3870- return 0 ;
3871- }
3872-
38733864typedef struct btech_special_object_counts BTECH_SPECIAL_OBJECT_COUNTS ;
38743865struct btech_special_object_counts {
38753866 int maps ;
@@ -4313,8 +4304,7 @@ static int btech_persistence_store_economy(sqlite3 *sqlite,
43134304int btech_persistence_register (PersistenceContext * context ,
43144305 BtechContext * btech ) {
43154306 if (persistence_register_sqlite_extension (
4316- context , "btech_special_state" ,
4317- btech_persistence_preload_special_state ,
4307+ context , "btech_special_state" , nullptr ,
43184308 btech_persistence_store_special_state , btech ) < 0 )
43194309 return -1 ;
43204310#ifdef BT_ADVANCED_ECON
0 commit comments