From fe4ca8d2c200493957fea75ad58915f56aee8326 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Mon, 9 Mar 2009 03:21:53 -0200
Subject: [PATCH 03/32] jtrans_rollback(): Set the new transaction's numops

The number of operations is not properly set in the new transaction. It
used to work fine just by chance (most code doesn't look into numops), but
the previous patch uncovered this problem.

This patch fixes it by setting numops appropriately.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 trans.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/trans.c b/trans.c
index ba30674..6ff54c2 100644
--- a/trans.c
+++ b/trans.c
@@ -471,6 +471,7 @@ ssize_t jtrans_rollback(struct jtrans *ts)
 
 	jtrans_init(ts->fs, &newts);
 	newts.flags = ts->flags;
+	newts.numops = ts->numops;
 
 	if (ts->op == NULL || ts->flags & J_NOROLLBACK) {
 		rv = -1;
-- 
1.6.2.rc0.226.gf08f


