Skip to content

Commit

Permalink
fix arrange shard doesn't work on python 2.7 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Oct 17, 2018
1 parent 57056c7 commit 366c241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aliyun/log/logclient_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def _split_one_shard_to_multiple(client, project, logstore, shard_info, count, c
rw_shards, increased_shard_count = {shard_info['id']: shard_info['info']}, 0
for x in range(1, count):
new_hash = shard_info['start'] + distance * x
new_hash = hex(new_hash)[2:]
new_hash = hex(new_hash)[2:].strip('lL')
new_hash = '0' * (TOTAL_HASH_LENGTH - len(new_hash)) + new_hash
try:
if x == 1:
Expand Down

0 comments on commit 366c241

Please sign in to comment.