1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Thin fix condition check for transation_id

id2 must be checked.
(missed in yesterday commit set).
This commit is contained in:
Zdenek Kabelac 2011-11-04 12:39:45 +00:00
parent 13dc67cda7
commit 19e3f8c30b

View File

@ -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? */
}