Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
58d312d
)
erlang: Fix a compiler warning in the disk_log transport
author
David Reiss
<dreiss@apache.org>
Mon, 30 Aug 2010 22:05:06 +0000
(22:05 +0000)
committer
David Reiss
<dreiss@apache.org>
Mon, 30 Aug 2010 22:05:06 +0000
(22:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990962
13f79535
-47bb-0310-9956-
ffa450edef68
lib/erl/src/thrift_disk_log_transport.erl
patch
|
blob
|
history
diff --git
a/lib/erl/src/thrift_disk_log_transport.erl
b/lib/erl/src/thrift_disk_log_transport.erl
index
761fa30
..
9c3b176
100644
(file)
--- a/
lib/erl/src/thrift_disk_log_transport.erl
+++ b/
lib/erl/src/thrift_disk_log_transport.erl
@@
-109,10
+109,10
@@
factory_impl(Name, ExtraLogOpts, TransportOpts) ->
ExtraLogOpts],
Log =
case disk_log:open(LogOpts) of
- {ok, Log} ->
- Log;
- {repaired, Log, Info1, Info2} ->
- error_logger:info_msg("Disk log ~p repaired: ~p, ~p~n", [Log, Info1, Info2]),
- Log
+ {ok, Log
S
} ->
+ Log
S
;
+ {repaired, Log
S
, Info1, Info2} ->
+ error_logger:info_msg("Disk log ~p repaired: ~p, ~p~n", [Log
S
, Info1, Info2]),
+ Log
S
end,
new(Log, TransportOpts).