This move the log message "channel marked pending-closed" to the point where the channel actually has been marked pending closed, instead of before the database transaction has been done.
This move the log message "channel marked pending-closed" to the point where the channel actually has been marked pending closed, instead of before the database transaction has been done.