~rdoering/ubuntu/intrepid/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/mnesia/src/mnesia_log.erl

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-05-01 16:57:10 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070501165710-2sapk0hp2gf3o0ip
Tags: 1:11.b.4-2ubuntu1
* Merge with Debian Unstable. Remaining changes:
  - Add -fno-stack-protector to fix broken crypto_drv.
* DebianMaintainerField update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1002
1002
    case catch ets:update_counter(Tab, Key, Incr) of
1003
1003
        CounterVal when integer(CounterVal) ->
1004
1004
            ok;
 
1005
        _ when Incr < 0 ->
 
1006
            Zero = {RecName, Key, 0},
 
1007
            true = ets:insert(Tab, Zero);
1005
1008
        _ ->
1006
 
            Zero = {RecName, Key, 0},
 
1009
            Zero = {RecName, Key, Incr},
1007
1010
            true = ets:insert(Tab, Zero)
1008
1011
    end,
1009
1012
    add_recs(Rest, N+1);