David S. wrote:
> Anyone familiar with this error running Apache and SQLite?
>
>   SQLite objects created in a thread can only be used in that same thread

The restriction is due to a bug found in many versions of Linux
(ex: Redhat 9) which prevents a fcntl lock created in one thread
from being removed or modified in a different thread.  Since
SQLite uses fcntl-locks for concurrency control, running SQLite
on a system that has the bug would lead to corrupt databases.
For the sake of portability, therefore, SQLite requires that a
database connection always be used from the same thread
where it was created.

Reply via email to