add_map_db2target uses add_map_db2targets
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 19 Nov 2009 11:23:37 +0000 (12:23 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 19 Nov 2009 11:23:37 +0000 (12:23 +0100)
src/filter_virt_db.cpp

index 95821e4..2b6a343 100644 (file)
@@ -682,8 +682,7 @@ void yf::VirtualDB::add_map_db2target(std::string db,
     std::list<std::string> targets;
     targets.push_back(target);
 
-    m_p->m_maps[mp::util::database_name_normalize(db)]
-        = VirtualDB::Map(targets, route);
+    add_map_db2targets(db, targets, route);
 }
 
 void yf::VirtualDB::process(mp::Package &package) const