[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: protorev file handling in svn_fs_commit_txn

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Tue, 26 Nov 2013 08:04:30 -0500

On 11/26/2013 06:53 AM, Philip Martin wrote:
> Suppose svn_fs_commit_txn fails to complete, either due to a transient
> error like disk full or file permissions, or because the process is
> killed. Further suppose that the transaction remains on disk. Is it
> valid to call svn_fs_commit_txn again on the same transaction? There
> doesn't seem to be anything to prohibit it but the FSFS implementation
> can lead to revision files that are not correct.

[Just answering the API question here.]

Yes. So long as the txn is neither aborted nor successfully promoted
into a new revision, you should be able to repeat the call to
svn_fs_commit_txn() without a corruption penalty. If FSFS doesn't allow
this to happen, FSFS is buggy.
Received on 2013-11-26 14:05:06 CET

This is an archived mail posted to the Subversion Dev mailing list.