Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save_plant: inelegant concurrency fix #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marado
Copy link
Contributor

@marado marado commented Feb 26, 2021

This inelegant and hackyish fix gives a randomly generated name to the
temporary savefiles, so there is only a 0.1% chance of the filename
being the same twice in a row.

This solves the ocasional exceptions raised in save_plant, when there
is more than one call still running at once, for the same user (due to
slow writes).

This inelegant and hackyish fix gives a randomly generated name to the
temporary savefiles, so there is only a 0.1% chance of the filename
being the same twice in a row.

This solves the ocasional exceptions raised in save_plant, when there
is more than one call still running at once, for the same user (due to
slow writes).
marado added a commit to marado/public_html that referenced this pull request Jul 29, 2021
Again a victim of botany's bugs, we're back to the begining of
generation 44:

  You're tired of waiting for your seed to grow.
  Generation: 44
  Growth rate: 9.6x

A fix for this issue was already provided in
jifunks/botany#38 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant