diff --git a/apps/leo_storage/src/leo_storage_handler_object.erl b/apps/leo_storage/src/leo_storage_handler_object.erl index 7babec6b..4e4a77d1 100644 --- a/apps/leo_storage/src/leo_storage_handler_object.erl +++ b/apps/leo_storage/src/leo_storage_handler_object.erl @@ -929,7 +929,7 @@ prefix_search(ParentDir, Marker, MaxKeys) -> end, case catch leo_object_storage_api:fetch_by_key( - ParentDir, Fun) of + ParentDir, Fun, MaxKeys) of {'EXIT', Cause} when is_tuple(Cause) -> {error, element(1, Cause)}; {'EXIT', Cause} ->