Discussion:
[leveldb] Multiple process accessing Leveldb
Sum Tsu
2016-10-17 17:53:23 UTC
Permalink
I am getting following error when multiple process from my program tries to
access the Leveldb:

IO error: lock /Path-to-db/LOCK: Resource temporarily unavailable

Is there any way to solve this issue and allow multiple process to access
Leveldb?
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robert Escriva
2016-10-17 18:46:16 UTC
Permalink
The design of leveldb doesn't allow multiple processes to access the
same DB instance. You can use multiple threads instead.

-Robert
Post by Sum Tsu
I am getting following error when multiple process from my program tries to
IO error: lock /Path-to-db/LOCK: Resource temporarily unavailable
Is there any way to solve this issue and allow multiple process to access
Leveldb?
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...