File tree 1 file changed +26
-1
lines changed
packages/common/sqlite-vfs-fdb/src/vfs/file 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,31 @@ pub unsafe extern "C" fn fdb_file_control(
758
758
SQLITE_OK
759
759
}
760
760
761
+ libsqlite3_sys:: SQLITE_FCNTL_PDB => {
762
+ // This is used for persistent database binding
763
+ // For our implementation, we can just acknowledge without changing behavior
764
+ tracing:: debug!( "PDB control op acknowledged" ) ;
765
+ SQLITE_OK
766
+ }
767
+
768
+ libsqlite3_sys:: SQLITE_FCNTL_LOCK_TIMEOUT => {
769
+ // Set lock timeout in milliseconds
770
+ tracing:: debug!( "Lock timeout control op" ) ;
771
+
772
+ if !arg. is_null ( ) {
773
+ let timeout_ptr = arg as * mut c_int ;
774
+ let timeout_value = * timeout_ptr;
775
+
776
+ // Store the current timeout value (for our implementation we don't track this,
777
+ // so we're just echoing back the given value)
778
+ * timeout_ptr = timeout_value;
779
+
780
+ tracing:: debug!( "Lock timeout set to {} ms" , timeout_value) ;
781
+ }
782
+
783
+ SQLITE_OK
784
+ }
785
+
761
786
// Unsupported or unknown ops
762
787
_ => {
763
788
// TODO: Make these a hard error
@@ -836,4 +861,4 @@ pub unsafe extern "C" fn fdb_file_close(file: *mut sqlite3_file) -> c_int {
836
861
SQLITE_OK
837
862
}
838
863
839
- // SHM implementation is in the shm.rs module
864
+ // SHM implementation is in the shm.rs module
You can’t perform that action at this time.
0 commit comments