File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
mongodb_consistent_backup/Oplog/Resolver Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 33# Skip bson in requirements , pymongo provides
44# noinspection PyPackageRequirements
55from bson import decode_file_iter
6+ from bson .codec_options import CodecOptions
67
78from mongodb_consistent_backup .Errors import Error
89from mongodb_consistent_backup .Oplog import Oplog
@@ -33,7 +34,7 @@ def run(self):
3334 self .state .set ('first_ts' , self .mongodump_oplog ['first_ts' ])
3435 if not self .state .get ('first_ts' ):
3536 self .state .set ('first_ts' , self .tailed_oplog ['first_ts' ])
36- for change in decode_file_iter (self .oplogs ['tailed' ]):
37+ for change in decode_file_iter (self .oplogs ['tailed' ], CodecOptions ( unicode_decode_error_handler = "ignore" ) ):
3738 self .last_ts = change ['ts' ]
3839 if not self .mongodump_oplog ['last_ts' ] or self .last_ts > self .mongodump_oplog ['last_ts' ]:
3940 if self .last_ts < self .max_end_ts :
You can’t perform that action at this time.
0 commit comments