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 e6759d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stanchion_multipart.erl
Expand Up @@ -185,14 +185,14 @@
check_no_multipart_uploads(Bucket, RiakPid) ->
HashBucket = stanchion_utils:to_bucket_name(objects, Bucket),

{{ok, Keys}, TAT} = ?TURNAROUND_TIME(riakc_pb_socket:list_keys(RiakPid, HashBucket)),
stanchion_stats:update([riakc, list_all_manifest_keys], TAT),
{{ok, Keys}, TAT0} = ?TURNAROUND_TIME(riakc_pb_socket:list_keys(RiakPid, HashBucket)),
stanchion_stats:update([riakc, list_all_manifest_keys], TAT0),

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

Expand Down

0 comments on commit e6759d6

Please sign in to comment.