diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-17 08:38:00 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-17 08:39:37 +0000 |
commit | 0fe8e10bc5e4c107311fda1fc9f175a39e27160e (patch) | |
tree | 37a8d67a1f0ef9255555039edf6eff4580581ee7 /README | |
parent | 3107a78110309a203b0c2ef7cc4cd9d18d294a46 (diff) | |
download | ruby-tdb-0fe8e10bc5e4c107311fda1fc9f175a39e27160e.tar.gz |
Lets just avoid threads for now :) The torture test still fails and there doesn't appear to be a good way to fix it without upstream supporting it.
Diffstat (limited to 'README')
-rw-r--r-- | README | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -15,7 +15,7 @@ write to the same databases used by Samba! and child processes. * Releases the GVL for slow disk operations under Ruby 1.9 so - other threads can run (but not other TDB operations on the same file) + other threads can run (but not other TDB operations! see Caveats below) * Includes several {hash functions}[link:Hash_Functions.html] not included by upstream TDB. @@ -25,10 +25,12 @@ write to the same databases used by Samba! These caveats will be addressed upstream in {TDB2}[http://mid.gmane.org/201008021002.47351.rusty@rustcorp.com.au] -* NOT native thread-safe by default, you MUST initialize your TDB - objects with <code>:threadsafe => true</code> or call - TDB#threadsafe! on each TDB object if you run with threads - under Ruby 1.9 (but not 1.8). +* NOT native thread-safe. Don't try accessing TDB objects from + multiple threads at the same time. This probably needs to be + fixed upstream since our attempts to make it work have failed. + + However, TDB will allow other Ruby 1.9 threads to run doing non-TDB + things just fine. * Database size is limited to 4G, even on 64-bit systems. |