From d2ac5b058312fc388db1ce1a6a5a257b4132a565 Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Wed, 21 Oct 2015 16:53:39 +0900 Subject: [PATCH] Bugfix: arg type to machi_util:parse_filename() --- src/machi_flu_metadata_mgr.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machi_flu_metadata_mgr.erl b/src/machi_flu_metadata_mgr.erl index f565a97..6b71b25 100644 --- a/src/machi_flu_metadata_mgr.erl +++ b/src/machi_flu_metadata_mgr.erl @@ -150,7 +150,7 @@ handle_info({'DOWN', Mref, process, Pid, file_rollover}, State = #state{ fluname tid = Tid }) -> lager:info("file proxy ~p shutdown because of file rollover", [Pid]), R = get_md_record_by_mref(Tid, Mref), - [Prefix | _Rest] = machi_util:parse_filename({file, R#md.filename}), + [Prefix | _Rest] = machi_util:parse_filename(R#md.filename), %% We only increment the counter here. The filename will be generated on the %% next append request to that prefix and since the filename will have a new