Re: [PATCH 01/11] xfs: Don't reuse the same transaciton ID for duplicated transactions.

Christoph Hellwig
2010-05-06T20:39:06Z

On Thu, May 06, 2010 at 11:45:41AM +1000, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> The transaction ID is written into the log as the unique identifier
> for transactions during recover. When duplicating a transaction, we
> reuse the log ticket, which means it has the same transaction ID as
> the previous transaction.
>
> Rather than regenerating a random transaction ID for the duplicated
> transaction, just add one to the current ID so that duplicated
> transaction can be easily spotted in the log and during recovery
> during problem diagnosis.

Oh well, more fun with transaction ids. I'm still not happy with
the not guarnateed unique schemes we have here, but for now this should
do it.

Reviewed-by: Christoph Hellwig <hch@lst.de>