vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm considering using GET_LOCK in a situation where I'm doing some processing that takes several minutes and doesn't involve the database until the end. I don't need to lock the database; at the end of the processing, there will be an atomic transaction. I just need to prevent two copies of the update task from running on the same item. And if an update crashes, the lock is released, which is what I want to happen. GET_LOCK seems to be the right mechanism. But I'd like to have some way of finding out what locks are currently set, for monitoring purposes. None of the options on SHOW seem to do this. Is there a way to see all the active locks? I known I can see if a request is waiting on a lock with SHOW PROCESSLIST, but can't see the locks currently being held. John Nagle |