We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents9e68ea1 +b4fd74c commitf36c0ccCopy 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
-forexp_backoff_msin [1,4,9,16,25,36,49,64,81,100,121,144,169,181]:
+forbackoff_msin [1,4,9,16,25,36,49,64,81,100,121,144,169,181]:
237
withsuppress(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
raisePermissionError(
245
"Impossible to apply `chmod` to file {}".format(obj_path)