Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoseinaghaei committed Feb 15, 2024
1 parent 3f2f87f commit 407f70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka_server/broker/file/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def sync_data(self):
broker_id = int(md5, 16) % partition_count
if broker_id == (int(self.partition) - 1) % partition_count:
self.segment.approve_sync()
print("this key is for this partition")
print(f"this key is for this partition, {md5} {key} {partition_count}")
return self.sync_data()
print("send sync data to broker", broker_id)

Expand Down

0 comments on commit 407f70e

Please sign in to comment.