Commit 8510b7f4 authored by lixiaofang's avatar lixiaofang

add

parent 7d9d0af7
......@@ -340,7 +340,7 @@ def judge_offset_partition_have_consum(offset=0, partition=0):
redis_list_data = 0
key = "irrigation_partition_offset_have_consum:" + str(partition)
redis_data = redis_client.get(key)
if offset > int(redis_data):
if offset < int(redis_data):
return False
redis_client.set(key, offset)
return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment