catalyst / mahara-module_objectfs

Object file system for Mahara.
GNU General Public License v3.0
3 stars 2 forks source link

acquire_object_lock doesn't check if lock is held #7

Open kenneth-hendricks opened 6 years ago

kenneth-hendricks commented 6 years ago

It just sets

set_field_select('artefact', 'locked', 1, "locked = 0 AND id = ?", array($fileartefact->get('id')));

It needs to check if the lock is held first and wait till it isn't