mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Remove the restriction that a transaction cannot be started by one linuxthread
and continued by another. Leave in the documentation the warning about not carrying a database connection across fork() but do not test for it any more. Ticket #130. (CVS 701) FossilOrigin-Name: bdbdb866f2e76abd1f8f545adadc9a900ed0cd1a
This commit is contained in:
14
src/os.c
14
src/os.c
@@ -579,20 +579,6 @@ int sqliteOsFileSize(OsFile *id, int *pSize){
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
** Return the process ID for the current process. This
|
||||
** only works under Unix. Under windows, a constant is returned.
|
||||
*/
|
||||
int sqliteOsProcessId(void){
|
||||
#if OS_UNIX
|
||||
return getpid();
|
||||
#endif
|
||||
#if OS_WIN
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Change the status of the lock on the file "id" to be a readlock.
|
||||
** If the file was write locked, then this reduces the lock to a read.
|
||||
|
Reference in New Issue
Block a user