From 0414f62fb63a1a18cca1682969f5fe4f95b346b9 Mon Sep 17 00:00:00 2001 From: mocchira Date: Tue, 8 Aug 2017 17:17:15 +0900 Subject: [PATCH] storage: Fix deleted objects can be remained in case compare_between_metadatas return the error tuple --- apps/leo_storage/src/leo_storage_mq.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/leo_storage/src/leo_storage_mq.erl b/apps/leo_storage/src/leo_storage_mq.erl index 1e6d0d0b..faf27878 100644 --- a/apps/leo_storage/src/leo_storage_mq.erl +++ b/apps/leo_storage/src/leo_storage_mq.erl @@ -463,8 +463,7 @@ handle_call({consume, MQId, MessageBin}) -> true -> %% Not handle the returun value of 'remove_objects_under_dir/1' %% because 'replcation-failurre' which is fixed by 'leo_async_deletion_queue' - remove_objects_under_dir(MessageBin), - ok; + remove_objects_under_dir(MessageBin); false -> ok end;