We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e68ea1 + b4fd74c commit f36c0ccCopy full SHA for f36c0cc
gitdb/db/loose.py
@@ -230,16 +230,16 @@ def store(self, istream):
230
# end rename only if needed
231
232
# Ensure rename is actually done and file is stable
233
- # Retry up to 14 times - exponential wait & retry in ms.
+ # Retry up to 14 times - quadratic wait & retry in ms.
234
# The total maximum wait time is 1000ms, which should be vastly enough for the
235
# OS to return and commit the file to disk.
236
- for exp_backoff_ms in [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 181]:
+ for backoff_ms in [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 181]:
237
with suppress(PermissionError):
238
# make sure its readable for all ! It started out as rw-- tmp file
239
# but needs to be rwrr
240
chmod(obj_path, self.new_objects_mode)
241
break
242
- time.sleep(exp_backoff_ms / 1000.0)
+ time.sleep(backoff_ms / 1000.0)
243
else:
244
raise PermissionError(
245
"Impossible to apply `chmod` to file {}".format(obj_path)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments