mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Rename _stats_set_aux() argument
The aux_data argument of _stats_set_aux() is the user-defined data to be stored with the stats region. Rename the argument to better reflect this.
This commit is contained in:
parent
f0fd03b122
commit
ac41deeeac
@ -1882,7 +1882,7 @@ bad:
|
|||||||
* generated from the current group table and included in the message.
|
* generated from the current group table and included in the message.
|
||||||
*/
|
*/
|
||||||
static int _stats_set_aux(struct dm_stats *dms,
|
static int _stats_set_aux(struct dm_stats *dms,
|
||||||
uint64_t region_id, const char *aux_data)
|
uint64_t region_id, const char *user_data)
|
||||||
{
|
{
|
||||||
const char *group_tag = NULL;
|
const char *group_tag = NULL;
|
||||||
struct dm_task *dmt = NULL;
|
struct dm_task *dmt = NULL;
|
||||||
@ -1897,11 +1897,10 @@ static int _stats_set_aux(struct dm_stats *dms,
|
|||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dm_snprintf(msg, sizeof(msg), "@stats_set_aux " FMTu64 " %s%s%s ",
|
if (dm_snprintf(msg, sizeof(msg), "@stats_set_aux " FMTu64 " %s%s%s ",
|
||||||
region_id, (group_tag) ? group_tag : "",
|
region_id, (group_tag) ? group_tag : "",
|
||||||
(group_tag) ? DMS_AUX_SEP : "",
|
(group_tag) ? DMS_AUX_SEP : "",
|
||||||
(strlen(aux_data)) ? aux_data : "-") < 0) {
|
(strlen(user_data)) ? user_data : "-") < 0) {
|
||||||
log_error("Could not prepare @stats_set_aux message");
|
log_error("Could not prepare @stats_set_aux message");
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user