When I set timeout to 120000 ms (2 minutes). It starts work. But as I
understand from reading SQLite C interface, when DB in WAL journal mode it
should work without busytimeout.

Can it work without busy timeout?

2015-08-10 17:11 GMT+03:00 Simon Slavin <slavins at bigfraud.org>:

>
> On 9 Aug 2015, at 10:37pm, ??????? ??????????? <dm3chip at gmail.com> wrote:
>
> > I've got a problem. I'm using sqlite3 in my C++ project. In the log I've
> > got error's *DB is locked error code 5*. As I know error code 5 means,
> that
> > DB is busy.
>
> For testings, please use
>
> <https://www.sqlite.org/c3ref/busy_timeout.html>
>
> int sqlite3_busy_timeout(sqlite3*, int ms);
>
> with a timeout of a couple of minutes. (Really.  Minutes.)  You will need
> to set it on all connections, not just the one which is currently reporting
> errors.
>
> Simon.
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>

Reply via email to