Skip to content

Permit recovery of failed transaction commit or rollback #56

Closed
@dancingbug

Description

@dancingbug

At present, Transaction::commit and Transaction::rollback have signatures
pub fn commit (mut self) -> Result<(), FbError> and
pub fn rollback(mut self) -> Result<(), FbError>

Can these ever fail without actually releasing resources? I found this and this which indicate that it's been a problem in the past.

If this does happen, the caller can't even attempt to recover straightforwardly because these methods consume the transaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions