Skip to content

Commit

Permalink
Merge branch 'cjy0125-master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdah committed Aug 10, 2017
2 parents bf283b0 + c22045f commit f57e506
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dynamic_dynamodb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,16 @@ def execute():
sys.exit(1)

for gsi_name, gsi_key in sorted(gsi_names):
unique_gsi_name = ':'.join([table_name, gsi_name])
try:
gsi_num_consec_read_checks = \
CHECK_STATUS['gsis'][gsi_name]['reads']
CHECK_STATUS['gsis'][unique_gsi_name]['reads']
except KeyError:
gsi_num_consec_read_checks = 0

try:
gsi_num_consec_write_checks = \
CHECK_STATUS['gsis'][gsi_name]['writes']
CHECK_STATUS['gsis'][unique_gsi_name]['writes']
except KeyError:
gsi_num_consec_write_checks = 0

Expand All @@ -186,7 +187,7 @@ def execute():
gsi_num_consec_read_checks,
gsi_num_consec_write_checks)

CHECK_STATUS['gsis'][gsi_name] = {
CHECK_STATUS['gsis'][unique_gsi_name] = {
'reads': gsi_num_consec_read_checks,
'writes': gsi_num_consec_write_checks
}
Expand Down

0 comments on commit f57e506

Please sign in to comment.