Gelbooru

Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Ticket Information - ID: #636


ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0000636Bug ReportingnormalN/A08/19/12 12:52AMlozertuser
Reporterlkjh098
Assigned to:geltas
Resolution:Open
View StatusPublic
Version:
Target Version:N/A
Summary:Uploader hiccup resulted in duplicate posts
Description:I'm not sure what happened, but somehow two identical copies of a file (md5:b93f0fe62b28ac908f6601710f37cc9e) got uploaded. There's probably a race condition between the check for an existing md5 and actually adding the image to the database. The uploader was acting hung for several minutes when this happened, which may have widened the window for the race.
Additional Info:
lozertuser replied at 2012-08-19 20:30:44
There WAS a race condition in earlier versions of the code. There are probably about 30-100 duplicate images on the site. Now that we use transactions, I think most of the chance of having a race is nil.