Skip to main content

force_release

Function force_release 

Source
pub async fn force_release(
    pool: &Pool,
    page_id: i64,
) -> Result<Option<PageLock>, ExecError>
Expand description

Force-release a lock regardless of ownership. Used by the POST /cms-admin/pages/{id}/unlock admin handler. Returns the row that was deleted (so the caller can audit-log who held it), or None if the row was already gone.

ยงErrors

Driver / query failures.