Details
Description
Opening a backup cursor acquires a mutex to protect some basic state. After opening a cursor, the state is changed. However, the opening process can still fail with uasserts, so a scopeguard is registered to undo the opening operation. But, closing the backup cursor also acquires the state protecting mutex.