From 19e3f8c30ba814f98078cae6bcd749818b0b8faa Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 4 Nov 2011 12:39:45 +0000 Subject: [PATCH] Thin fix condition check for transation_id id2 must be checked. (missed in yesterday commit set). --- libdm/libdm-deptree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 31981decd..8c148a32c 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -2980,11 +2980,11 @@ int dm_tree_node_add_thin_pool_message(struct dm_tree_node *node, tm->message.u.m_trim.new_size = id2; break; case DM_THIN_MESSAGE_SET_TRANSACTION_ID: - if ((id1 + 1) != id2) { + if ((id1 + 1) != id2) { log_error("New transaction id must be sequential."); return 0; /* FIXME: Maybe too strict here? */ } - if (id1 != seg->transaction_id) { + if (id2 != seg->transaction_id) { log_error("Current transaction id is different from thin pool."); return 0; /* FIXME: Maybe too strict here? */ }