summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-09-14 14:59:40 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-09-14 20:18:54 +0200
commitc356991fa83b15af261e8d7e33f5615397c07778 (patch)
treeb38dc8f6bb55828dc25f750983079fe50bc84e5a
parente42ee69988fc770314a355e6acd417e00e0c9623 (diff)
downloadlvm2-c356991fa83b15af261e8d7e33f5615397c07778.tar.gz
libdm: no validate for pool without messages
Avoid validation of free space in pool, when no messages are passed. Patch a3c7e326c3e9950fe74e433c406d6e1b5a53bf25 add new check for pool overload - but this check should not be made if there are no messages and transaction_id is still within 'bounds' (bigger by 1).
-rw-r--r--WHATS_NEW_DM1
-rw-r--r--libdm/libdm-deptree.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index db40debcc..9e3078678 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,6 @@
Version 1.02.108 -
=====================================
+ Do not check for full thin pool when activating without messages (1.02.107).
Version 1.02.107 - 5th September 2015
=====================================
diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c
index d40362daa..7b7ca5bb1 100644
--- a/libdm/libdm-deptree.c
+++ b/libdm/libdm-deptree.c
@@ -1633,7 +1633,7 @@ static int _node_send_messages(struct dm_tree_node *dnode,
return 0;
}
- if (!send)
+ if (!have_messages || !send)
return 1; /* transaction_id is matching */
dm_list_iterate_items(tmsg, &seg->thin_messages) {