On Mar 31, 2009, at 7:14 PM, Dennis Volodomanov wrote:

> Hello,
>
> I'd like to ask how should the SQLITE_LOCKED_SHAREDCACHE be processed?
> Is it like a normal SQLITE_BUSY/SQLITE_LOCKED and I should sleep a bit
> and try again? Or is this a fatal error and requires me to abort the
> transaction?


SQLITE_LOCKED_SHAREDCACHE is like SQLITE_LOCKED and can be processed  
in the same way, if you want.  But if you get a  
SQLITE_LOCK_SHAREDCACHE you also have the option of calling  
sqlite3_unlock_notify().  You should not use sqlite3_unlock_notify()  
on an ordinary SQLITE_LOCKED.  Additional information at 
http://www.sqlite.org/unlock_notify.html

D. Richard Hipp
d...@hwaci.com



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to