Ignore:
Timestamp:
Dec 16, 2011, 2:53:24 PM (9 years ago)
Author:
plg
Message:

merge r12747 from branch 2.3 to trunk

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
  • trunk/include/dblayer/functions_mysql.inc.php

    r12010 r12748  
    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.