Sreejith M
2015-10-14 14:12:23 UTC
Hi,
This is the scenario,
1. Process A creates/opens a leveldb dir "/foo" using db::Open(). This
means there is a LOCK file on the dir indicating that the leveldb has been
locked by the process.
2. Process A does some Get/Put operations.
3. Process A wants to release the lock. i.e., remove the LOCK file on the
leveldb directory.
4. Process B or A wants to open the same leveldb directory "/foo" but the
LOCK is still present.
I was wondering if there is a way to release the lock(delete the LOCK file)
so that I can use the same leveldb directory once again? I am digging into
the source code but posting it here incase anyone sees it before.
Thanks!
This is the scenario,
1. Process A creates/opens a leveldb dir "/foo" using db::Open(). This
means there is a LOCK file on the dir indicating that the leveldb has been
locked by the process.
2. Process A does some Get/Put operations.
3. Process A wants to release the lock. i.e., remove the LOCK file on the
leveldb directory.
4. Process B or A wants to open the same leveldb directory "/foo" but the
LOCK is still present.
I was wondering if there is a way to release the lock(delete the LOCK file)
so that I can use the same leveldb directory once again? I am digging into
the source code but posting it here incase anyone sees it before.
Thanks!
--
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.
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.