Displaying 1 result from an estimated 1 matches for "databaselock".
2010 Sep 01
1
DatabaseLockError: REMOTE: unable to get write lock
...xapian-tcpsrv --port 9100 --interface 127.0.0.1 --writable ./xapiandb/
and in script.py:
import xapian as xa
db = xa.remote_open_writable('localhost', 9100)
# other stuff
# ...
script is a long running program, and when i try to run another instance,
i get :
xapian.DatabaseLockError: REMOTE:Unable to get write lock on /home/hinoglu/xapiandb/ : already locked
Please correct me if i'm wrong, writelock is the xapian-tcpsrv's lock, not the clients'. So why am i getting
databaselock error? Isn't xapian-tcpsrv capable of handling multiple clients?
Thanks
Ozgu...