8000 Concurrent write hangs while cursor in thread reads · Issue #12 · minad/lmdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Concurrent write hangs while cursor in thread reads #12
Closed
@vjoel

Description

@vjoel
env = LMDB.new 'tmp'
db = env.database
60.times {|i| s = "%02s" % i; db[s]=s}
Thread.new {db.cursor {|c| while c.next; sleep 0.1; end; p c.get}}
sleep 0.5
db['50'] = 'foo' # hangs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0