function cleanDoneOrCanceledLog() { foreach (getAllDbsForDoneOrCanceledLog() as $dbInfo) { $link = connect($dbInfo); if ($link) { \database\cleanDoneOrCanceledLog($link); } } }
function getDbForDoneOrCanceledLog($customerId) { return chooseShard(getAllDbsForDoneOrCanceledLog(), $customerId); }