File tree 2 files changed +0
-13
lines changed
2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -750,11 +750,6 @@ pub extern "C" fn crsql_ensure_table_infos_are_up_to_date(
750
750
ext_data : * mut crsql_ExtData ,
751
751
err : * mut * mut c_char ,
752
752
) -> c_int {
753
- let already_updated = unsafe { ( * ext_data) . updatedTableInfosThisTx == 1 } ;
754
- if already_updated {
755
- return ResultCode :: OK as c_int ;
756
- }
757
-
758
753
let schema_changed =
759
754
unsafe { crsql_fetchPragmaSchemaVersion ( db, ext_data, TABLE_INFO_SCHEMA_VERSION ) } ;
760
755
@@ -769,9 +764,6 @@ pub extern "C" fn crsql_ensure_table_infos_are_up_to_date(
769
764
Ok ( new_table_infos) => {
770
765
* table_infos = new_table_infos;
771
766
forget ( table_infos) ;
772
- unsafe {
773
- ( * ext_data) . updatedTableInfosThisTx = 1 ;
774
- }
775
767
return ResultCode :: OK as c_int ;
776
768
}
777
769
Err ( e) => {
@@ -782,9 +774,6 @@ pub extern "C" fn crsql_ensure_table_infos_are_up_to_date(
782
774
}
783
775
784
776
forget ( table_infos) ;
785
- unsafe {
786
- ( * ext_data) . updatedTableInfosThisTx = 1 ;
787
- }
788
777
return ResultCode :: OK as c_int ;
789
778
}
790
779
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ static int commitHook(void *pUserData) {
38
38
pExtData -> dbVersion = pExtData -> pendingDbVersion ;
39
39
pExtData -> pendingDbVersion = -1 ;
40
40
pExtData -> seq = 0 ;
41
- pExtData -> updatedTableInfosThisTx = 0 ;
42
41
return SQLITE_OK ;
43
42
}
44
43
@@ -47,7 +46,6 @@ static void rollbackHook(void *pUserData) {
47
46
48
47
pExtData -> pendingDbVersion = -1 ;
49
48
pExtData -> seq = 0 ;
50
- pExtData -> updatedTableInfosThisTx = 0 ;
51
49
}
52
50
53
51
#ifdef LIBSQL
You can’t perform that action at this time.
0 commit comments