summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiahuili <Jiahui.Li@ibm.com>2021-10-13 10:35:36 -0500
committerNick Vatamaniuc <nickva@users.noreply.github.com>2021-10-13 12:32:17 -0400
commit029612b27c78405790fd550958028cec5c84e9c8 (patch)
tree69b473051b1ae5fa98d36510edd4e7fc82080cef
parent79f64a7897d72217780a0708ec657fcd6ef99b26 (diff)
downloadcouchdb-029612b27c78405790fd550958028cec5c84e9c8.tar.gz
Avoid badmatch for fabric:cleanup_index_files
-rw-r--r--src/fabric/src/fabric.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fabric/src/fabric.erl b/src/fabric/src/fabric.erl
index 372f89215..aaaa7e011 100644
--- a/src/fabric/src/fabric.erl
+++ b/src/fabric/src/fabric.erl
@@ -509,7 +509,11 @@ cleanup_index_files(DbName) ->
file:delete(File)
end, inactive_index_files(DbName))
catch
- error:database_does_not_exist -> ok
+ error:Error ->
+ couch_log:error(
+ "~p:cleanup_index_files. Error: ~p",
+ [?MODULE, Error]),
+ ok
end.
%% @doc inactive index files for a specific db