openvstorage / volumedriver

The Open vStorage VolumeDriver is the core of the Open vStorage solution: a high performance distributed block layer. It converts block storage into objects (Storage Container Objects).
Other
37 stars 18 forks source link

Log filtering uses reference to temporary on stack #371

Closed redlicha closed 6 years ago

redlicha commented 6 years ago
const std::string&
extract_logger_id(const bl::attribute_value_set& avs)
{
    return bl::extract_or_default<LoggerAttrType>(logger_attr_key,
                                                  avs,
                                                  ""s); // <-----
}
wimpers commented 6 years ago

Milestone closed.