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 da19c4b commit 3f2f87f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kafka_server/broker/file/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +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")
return self.sync_data()
print("send sync data to broker", broker_id)

Expand Down

0 comments on commit 3f2f87f

Please sign in to comment.