From: David Reiss Date: Mon, 30 Aug 2010 22:05:06 +0000 (+0000) Subject: erlang: Fix a compiler warning in the disk_log transport X-Git-Tag: 0.5.0~143 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=14da1daf6780ad8f9829085399215ac71108fdf5;p=common%2Fthrift.git erlang: Fix a compiler warning in the disk_log transport git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990962 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/thrift_disk_log_transport.erl b/lib/erl/src/thrift_disk_log_transport.erl index 761fa309..9c3b176a 100644 --- 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, 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).