You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2010/08/31 00:05:06 UTC
svn commit: r990962 -
/incubator/thrift/trunk/lib/erl/src/thrift_disk_log_transport.erl
Author: dreiss
Date: Mon Aug 30 22:05:06 2010
New Revision: 990962
URL: http://svn.apache.org/viewvc?rev=990962&view=rev
Log:
erlang: Fix a compiler warning in the disk_log transport
Modified:
incubator/thrift/trunk/lib/erl/src/thrift_disk_log_transport.erl
Modified: incubator/thrift/trunk/lib/erl/src/thrift_disk_log_transport.erl
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/erl/src/thrift_disk_log_transport.erl?rev=990962&r1=990961&r2=990962&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/erl/src/thrift_disk_log_transport.erl (original)
+++ incubator/thrift/trunk/lib/erl/src/thrift_disk_log_transport.erl Mon Aug 30 22:05:06 2010
@@ -109,10 +109,10 @@ factory_impl(Name, ExtraLogOpts, Transpo
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, LogS} ->
+ LogS;
+ {repaired, LogS, Info1, Info2} ->
+ error_logger:info_msg("Disk log ~p repaired: ~p, ~p~n", [LogS, Info1, Info2]),
+ LogS
end,
new(Log, TransportOpts).