Skip to content

Commit

Permalink
- Fix: race on upload transaction
Browse files Browse the repository at this point in the history
(cherry picked from commit d33284a)
  • Loading branch information
afabiani committed Nov 29, 2021
1 parent e0c851f commit bf444e5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions geonode/geoserver/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ def geoserver_finalize_upload(
if lock.acquire() is True:
from geonode.upload.models import Upload
upload = Upload.objects.get(import_id=import_id)

if upload.layer is not None:
return

upload.layer = instance
upload.save()

Expand Down

0 comments on commit bf444e5

Please sign in to comment.