basho / eleveldb

Erlang LevelDB API
262 stars 177 forks source link

question: can a db be shared between multiple processes [JIRA: RIAK-2319] #172

Closed benoitc closed 8 years ago

benoitc commented 8 years ago

Can a db handle be shared between multiple processes ? or do i need to handle all operations via a process?

Basho-JIRA commented 8 years ago

There is a key mutex that is NOT process shared. Changing its initialization and its related condition variable would get you close. But there several state objects that would need to move to a shared memory segment too. Not impossible but not quick either.

_[posted via JIRA by Matthew Von-Maszewski]_

benoitc commented 8 years ago

thanks for the information! So I will need to maintain it in its own process then. closing the issue. (out of the context but what is this both? Is it shipped with jira?)