Re: [PATCH v2 06/20] virlog: Introduce virLogDefineFilters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> + */
>> +int
>> +virLogDefineFilters(virLogFilterPtr *filters, size_t nfilters)
>> +{
>> +    if (virLogInitialize() < 0)
>> +        return -1;
>> +
>> +    virLogLock();
>> +    virLogResetOutputs();
> 
> Copy/Paste error - s/b virLogResetFilters(); ?
> 
>> +    virLogFilters = filters;
>> +    virLogNbOutputs = nfilters;
> 
> Similar copy/paste error s/b virLogNbFilters
> 
>> +    virLogFiltersSerial++;
> 
> And since virLogResetFilters updates this, it's not required to do it
> twice right?

You're absolutely right, I failed to see it but since we're already
holding the lock on the mutex, despite the fact that serial testing is
done concurrently, no source update can take place unless the lock is
released, thanks.

Erik

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]