Ignore:
Timestamp:
Dec 16, 2011, 2:52:40 PM (12 years ago)
Author:
plg
Message:

bug 2534 fixed: clean (as clean as possible with MySQL+MyISAM) handle of
concurrency on user cache refresh. No more error when regenerating several
thumbnails at once.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/include/dblayer/functions_mysql.inc.php

    r12010 r12747  
    417417 * @return void
    418418 */
    419 function mass_inserts($table_name, $dbfields, $datas)
    420 {
     419function mass_inserts($table_name, $dbfields, $datas, $options=array())
     420{
     421  $ignore = '';
     422  if (isset($options['ignore']) and $options['ignore'])
     423  {
     424    $ignore = 'IGNORE';
     425  }
     426 
    421427  if (count($datas) != 0)
    422428  {
     
    439445      {
    440446        $query = '
    441 INSERT INTO '.$table_name.'
     447INSERT '.$ignore.' INTO '.$table_name.'
    442448  ('.implode(',', $dbfields).')
    443449  VALUES';
Note: See TracChangeset for help on using the changeset viewer.