From 9e410d65e3c69514f5c1f2dfa8e4d492d0cf55a1 Mon Sep 17 00:00:00 2001 From: martinsumner Date: Sat, 5 Nov 2016 12:49:15 +0000 Subject: [PATCH] Filename issue - not recording full filename in manifest Broekn by change to get response on L0 completion, SFT was informing penciller of the filename passed in (without extension), not the completed one with the extension. --- src/leveled_sft.erl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/leveled_sft.erl b/src/leveled_sft.erl index 46958e0..30f1e70 100644 --- a/src/leveled_sft.erl +++ b/src/leveled_sft.erl @@ -363,7 +363,7 @@ handle_cast({sft_newfroml0cache, Filename, Slots, FetchFun, PCL}, _State) -> {noreply, State}; _ -> leveled_penciller:pcl_confirml0complete(PCL, - Filename, + State#state.filename, State#state.smallest_key, State#state.highest_key), {noreply, State} @@ -388,12 +388,7 @@ terminate(Reason, State) -> ok = file:close(State#state.handle), ok = file:delete(State#state.filename); _ -> - case State#state.handle of - undefined -> - ok; - Handle -> - ok = file:close(Handle) - end + ok = file:close(State#state.handle) end. code_change(_OldVsn, State, _Extra) ->