diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-11-11 22:04:44 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-11-13 11:17:06 +0100 |
commit | 112c0592ad0d25bae0cea04275d201d72187f85b (patch) | |
tree | c7203fc2fa403f6ee835ee56a5c0a64fdd928b36 | |
parent | 007be91e3d128320c290fc404532d1d691212b88 (diff) | |
download | lvm2-112c0592ad0d25bae0cea04275d201d72187f85b.tar.gz |
debug: put stack on error path
At least check result and trace it.
However we may need better error reaction in this case.
-rw-r--r-- | lib/cache/lvmetad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c index 7ef1c8c30..f8393dfbe 100644 --- a/lib/cache/lvmetad.c +++ b/lib/cache/lvmetad.c @@ -1734,7 +1734,8 @@ void lvmetad_validate_global_cache(struct cmd_context *cmd, int force) * Update the local lvmetad cache so it correctly reflects any * changes made on remote hosts. */ - lvmetad_pvscan_all_devs(cmd, NULL); + if (!lvmetad_pvscan_all_devs(cmd, NULL)) + stack; /* FIXME: Anything more on this error path ? */ /* * Clear the global_invalid flag in lvmetad. |