File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
mongodb_consistent_backup Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def run(self):
152152 self .verbose
153153 )]
154154 self .dump_threads [0 ].start ()
155- self .wait ()
155+ self .dump_threads [ 0 ]. join ()
156156
157157 self .completed = True
158158 return self ._summary
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ def summary(self):
3030 return self ._summary
3131
3232 def prepare_oplog_files (self , shard_name ):
33- oplog_dir = os .path .join (self .base_dir , shard_name )
33+ oplog_dir = os .path .join (self .backup_dir , shard_name )
3434 if not os .path .isdir (oplog_dir ):
35- os .makedirs (oplog_dir )
35+ os .mkdir (oplog_dir )
3636 oplog_file = os .path .join (oplog_dir , "oplog-tailed.bson" )
3737 return oplog_file
3838
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ chown %{run_user}:%{run_group} %{data_dir} %{log_dir}
7070
7171
7272%files
73- %{_sysconfdir }/%{bin_name }.yml
74- %{_sysconfdir }/cron.d/%{name }
73+ %config(noreplace) % {_sysconfdir }/%{bin_name }.yml
74+ %config(noreplace) % {_sysconfdir }/cron.d/%{name }
7575%{prefix }/bin/%{bin_name }
7676%{prefix }/share/%{name }/%{bin_name }.example.yml
7777%{prefix }/share/%{name }/LICENSE
You can’t perform that action at this time.
0 commit comments