bug with sdbm?

S

snacktime

I found that when trying to store marshalled data in sdbm, it croaks
with the message "sdbm_store failed (SDBMError)" when the marshalled
object contains binary data, such as a compressed file. dbm and gdbm
work fine, as does berkeleydb. This is on Freebsd.

Chris
 
V

Vincent Fourmond

snacktime said:
I found that when trying to store marshalled data in sdbm, it croaks
with the message "sdbm_store failed (SDBMError)" when the marshalled
object contains binary data, such as a compressed file. dbm and gdbm
work fine, as does berkeleydb.

Quoting from Ruby in a Nutshell, page 152:

SDBM:

Public domain implementation of DMB. HAs the same interface as DBM. Runs
almost anywhere but has inferior performance and data-size limitations
compared to the other DBMs...

Looks like you're hitting those limitations.

Vince
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top