Skip to content

Commit a3aa9d8

Browse files
authored
Merge pull request #335 from Backblaze/fix_scan_reporter_race
Fix scan reporter race and import error
2 parents c03aad2 + cdb1363 commit a3aa9d8

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Fixed
10+
* Fix a race in progress reporter
11+
* Fix import of replication
12+
913
## [1.17.1] - 2022-06-23
1014

1115
### Fixed

b2sdk/scan/report.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ def print_completion(self, message):
8484
:type message: str
8585
"""
8686
with self.lock:
87-
if not self.closed:
88-
self._print_line(message, True)
89-
self._last_update_time = 0
90-
self._update_progress()
87+
self._print_line(message, True)
88+
self._last_update_time = 0
89+
self._update_progress()
9190

9291
def update_count(self, delta: int):
9392
"""

b2sdk/v1/replication/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
######################################################################
2+
#
3+
# File: b2sdk/v1/replication/__init__.py
4+
#
5+
# Copyright 2022 Backblaze Inc. All Rights Reserved.
6+
#
7+
# License https://www.backblaze.com/using_b2_code.html
8+
#
9+
######################################################################

0 commit comments

Comments
 (0)