1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-29 04:55:51 +03:00

lvmetad: Make "reason" in a token_mismatch reply more informative.

This commit is contained in:
Petr Rockai 2014-02-26 15:10:21 +01:00
parent 40e6176d25
commit 4143b284f8

View File

@ -1095,7 +1095,8 @@ static response handler(daemon_state s, client_handle h, request r)
return daemon_reply_simple("token_mismatch", return daemon_reply_simple("token_mismatch",
"expected = %s", state->token, "expected = %s", state->token,
"received = %s", token, "received = %s", token,
"reason = %s", "token mismatch", NULL); "reason = %s",
"lvmetad cache is invalid due to a global_filter change or due to a running rescan", NULL);
} }
pthread_mutex_unlock(&state->token_lock); pthread_mutex_unlock(&state->token_lock);