diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-08-13 11:17:00 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-08-13 11:17:00 +0100 |
commit | 6f6e9fe07400b79a5081eaecc6348c902d63f687 (patch) | |
tree | c86c5777c1a8fe20bf51250ce3dff971c070b3d4 | |
parent | dc99ef28edaf6ec1b243f36dc6f2ea7aa9a24ce9 (diff) | |
download | rabbitmq-server-bug26341.tar.gz |
BE more assertive.bug26341
-rw-r--r-- | src/rabbit_recovery_terms.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_recovery_terms.erl b/src/rabbit_recovery_terms.erl index bbf38f58..e23e3e6b 100644 --- a/src/rabbit_recovery_terms.erl +++ b/src/rabbit_recovery_terms.erl @@ -58,7 +58,7 @@ read(DirBaseName) -> end. clear() -> - dets:delete_all_objects(?MODULE), + ok = dets:delete_all_objects(?MODULE), flush(). %%---------------------------------------------------------------------------- @@ -113,9 +113,8 @@ open_table() -> {ram_file, true}, {auto_save, infinity}]). -flush() -> dets:sync(?MODULE). +flush() -> ok = dets:sync(?MODULE). close_table() -> ok = flush(), ok = dets:close(?MODULE). - |