Hi Monks,
I have the read/write one DBM database by about 10-20 scripts. the read/write hang on long time . so I kill the process of read/write process by "kill" linux command.
However,I try to re-read/write the same DBM database with same script.
the error out:
DBM::Deep: Cannot allocate transaction ID at
how to solve this ? or my DBM database broken ?

sub writeToDB { say "start to writeToDB"; my $dbName = shift || "LMT.db"; my $pName = shift; my $date= shift; my $hashRef= shift; my $db = DBM::Deep->new( file=> $dbName, num_txns=> 10, ); eval { $db->begin_work; foreach ( keys %$hashRef) { push @{$db->{$pName}->{$date}->{$_}},$hashRef->{$_}; } $db->commit; }; if(defined $@ and length $@) { say $@; $db->rollback; } }

In reply to DBM::Deep: Cannot allocate transaction ID by fanasy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.