withLock
Takes the lock, runs block, and gives the lock back however that went.
Throws
LOCK_NOT_ACQUIRED if the wait ran out - which means another migrator is still going, or a session somewhere is holding the lock and not moving.
Takes the lock, runs block, and gives the lock back however that went.
LOCK_NOT_ACQUIRED if the wait ran out - which means another migrator is still going, or a session somewhere is holding the lock and not moving.