diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-04-05 14:16:24 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-04-05 14:16:24 +0100 |
commit | ecc01b8dcd4c96a8b9ce3cb71205e9aa019f2ea9 (patch) | |
tree | 731abc5c08e1a70e760c75deb8fbf8674d43dc0e /src/rabbit_runtime_parameters.erl | |
parent | 8cbb770af87d751cd8fc8295b047b9647dd67b86 (diff) | |
download | rabbitmq-server-ecc01b8dcd4c96a8b9ce3cb71205e9aa019f2ea9.tar.gz |
Oops
Diffstat (limited to 'src/rabbit_runtime_parameters.erl')
-rw-r--r-- | src/rabbit_runtime_parameters.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_runtime_parameters.erl b/src/rabbit_runtime_parameters.erl index a04530f7..947875d6 100644 --- a/src/rabbit_runtime_parameters.erl +++ b/src/rabbit_runtime_parameters.erl @@ -141,8 +141,9 @@ lookup_missing(AppName, Key, Default) -> rabbit_misc:execute_mnesia_transaction( fun () -> case mnesia:read(?TABLE, {AppName, Key}) of - [] -> mnesia:write(?TABLE, c(AppName, Key, Default), write), - Default; + [] -> Record = c(AppName, Key, Default), + mnesia:write(?TABLE, Record, write), + Record; [R] -> R end end). |