diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c index 2516ba3d..ce2f4deb 100644 --- a/src/libostree/ostree-repo-commit.c +++ b/src/libostree/ostree-repo-commit.c @@ -2229,10 +2229,6 @@ ostree_repo_abort_transaction (OstreeRepo *self, if (!self->in_transaction) return TRUE; - /* Do not propagate failures from cleanup_tmpdir() immediately, as we want - * to clean up the rest of the internal transaction state first. */ - cleanup_tmpdir (self, cancellable, &cleanup_error); - if (self->loose_object_devino_hash) g_hash_table_remove_all (self->loose_object_devino_hash); @@ -2242,6 +2238,10 @@ ostree_repo_abort_transaction (OstreeRepo *self, glnx_tmpdir_unset (&self->commit_stagedir); glnx_release_lock_file (&self->commit_stagedir_lock); + /* Do not propagate failures from cleanup_tmpdir() immediately, as we want + * to clean up the rest of the internal transaction state first. */ + cleanup_tmpdir (self, cancellable, &cleanup_error); + self->in_transaction = FALSE; if (self->txn_locked)