Skip to content

Commit

Permalink
Remove shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
kuenishi committed Jul 23, 2015
1 parent 4fe128e commit 9aaf541
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/stanchion_multipart.erl
Expand Up @@ -190,9 +190,7 @@ check_no_multipart_uploads(Bucket, RiakPid) ->

%% check all up
lists:all(fun(Key) ->
{GetResult, TAT} =
?TURNAROUND_TIME(riakc_pb_socket:get(RiakPid, HashBucket, Key)),
stanchion_stats:update([riakc, get_manifest], TAT),
GetResult = stanchion_utils:get_manifests_raw(RiakPid, Bucket, Key),
has_no_upload(GetResult)
end, Keys).

Expand Down
5 changes: 5 additions & 0 deletions src/stanchion_utils.erl
Expand Up @@ -32,6 +32,7 @@
get_admin_creds/0,
get_keys_and_values/1,
get_manifests/3,
get_manifests_raw/3,
has_tombstone/1,
pow/2,
pow/3,
Expand Down Expand Up @@ -598,6 +599,10 @@ is_bucket_clean(Bucket, RiakPid, BucketObj) ->
{true, BucketObj}
end
end
catch T:E ->
_ = lager:error("Could not check whether bucket was empty. Reason: ~p:~p - ~p",
[T,E,erlang:get_stacktrace()]),
error({T, E})
after
close_manifest_connection(RiakPid, ManifestRiakPid)
end.
Expand Down

1 comment on commit 9aaf541

@shino
Copy link
Contributor

@shino shino commented on 9aaf541 Jul 24, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Please sign in to comment.