From 8c4de2778945654e76f4adfd3b3190b9d220f511 Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Tue, 9 Nov 2021 11:50:21 +0000 Subject: [PATCH] Fix spec for book_hotbackup/1 Returned function requires a backup path --- src/leveled_bookie.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leveled_bookie.erl b/src/leveled_bookie.erl index 6f2fa7c..23598a3 100644 --- a/src/leveled_bookie.erl +++ b/src/leveled_bookie.erl @@ -1120,7 +1120,7 @@ book_destroy(Pid) -> gen_server:call(Pid, destroy, infinity). --spec book_hotbackup(pid()) -> {async, fun(() -> ok)}. +-spec book_hotbackup(pid()) -> {async, fun((string()) -> ok)}. %% @doc Backup the Bookie %% Return a function that will take a backup of a snapshot of the Journal. %% The function will be 1-arity, and can be passed the absolute folder name