Skip to content

Commit

Permalink
Avoid infinite scan with low-granularity time
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Apr 17, 2024
1 parent 2dce783 commit 4b7d7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hsds/domain_sn.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ async def PUT_Domain(request):
while True:
scan_time = await getScanTime(app, root_id, bucket=bucket)
log.debug(f"Most recent scan on domain {root_id} completed at time {scan_time}")
if scan_time > req_send_time:
if scan_time >= req_send_time:
log.info(f"scan complete for root: {root_id}")
break
if getNow(app) - req_send_time > max_scan_duration:
Expand Down

0 comments on commit 4b7d7c7

Please sign in to comment.