only return true if plugins are actually newly registered
This commit is contained in:
parent
dcb87dd935
commit
69de7f0a10
1 changed files with 7 additions and 5 deletions
|
@ -214,13 +214,15 @@ bool datasource_cache::register_datasource(std::string const& filename)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
plugins_.insert(std::make_pair(plugin->name(),plugin));
|
if (plugins_.insert(std::make_pair(plugin->name(),plugin)).second)
|
||||||
MAPNIK_LOG_DEBUG(datasource_cache)
|
{
|
||||||
|
MAPNIK_LOG_ERROR(datasource_cache)
|
||||||
<< "datasource_cache: Registered="
|
<< "datasource_cache: Registered="
|
||||||
<< plugin->name();
|
<< plugin->name();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MAPNIK_LOG_ERROR(datasource_cache)
|
MAPNIK_LOG_ERROR(datasource_cache)
|
||||||
|
|
Loading…
Reference in a new issue