diff options
author | Matthias Radestock <matthias@lshift.net> | 2009-08-20 00:29:08 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2009-08-20 00:29:08 +0100 |
commit | ebc4110f43c625cd620fad9ded073de469cb6cb8 (patch) | |
tree | 64d0fe2e22cd473a9ddecc978bbd25a61a27f0fc /src/rabbit_guid.erl | |
parent | a16afc8669ecaa758814cc82f3199fabe4d4c636 (diff) | |
download | rabbitmq-server-ebc4110f43c625cd620fad9ded073de469cb6cb8.tar.gz |
it's a serial, not a guidbug21427
Diffstat (limited to 'src/rabbit_guid.erl')
-rw-r--r-- | src/rabbit_guid.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_guid.erl b/src/rabbit_guid.erl index 7a3d7a98..b789fbd1 100644 --- a/src/rabbit_guid.erl +++ b/src/rabbit_guid.erl @@ -42,7 +42,7 @@ terminate/2, code_change/3]). -define(SERVER, ?MODULE). --define(SERIAL_FILENAME, "rabbit_guid"). +-define(SERIAL_FILENAME, "rabbit_serial"). -record(state, {serial}). @@ -69,12 +69,12 @@ update_disk_serial() -> {ok, [Num]} -> Num; {error, enoent} -> rabbit_persister:serial(); {error, Reason} -> - throw({error, {cannot_read_guid_file, Filename, Reason}}) + throw({error, {cannot_read_serial_file, Filename, Reason}}) end, case rabbit_misc:write_term_file(Filename, [Serial + 1]) of ok -> ok; {error, Reason1} -> - throw({error, {cannot_write_guid_file, Filename, Reason1}}) + throw({error, {cannot_write_serial_file, Filename, Reason1}}) end, Serial. |