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 | 17220aa99bd2fb248f5a0946591cba90f5c17226 (patch) | |
| tree | 731abc5c08e1a70e760c75deb8fbf8674d43dc0e | |
| parent | bfd3a4912b06de8d51b1977602003893234ecbcb (diff) | |
| download | rabbitmq-server-git-17220aa99bd2fb248f5a0946591cba90f5c17226.tar.gz | |
Oops
| -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 a04530f730..947875d627 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). |
