Skip to content
  1. Apr 11, 2012
    • DeFr's avatar
      Bug #1525802 by DeFr: Fix a fatal error at the end of the request · ad024b4a
      DeFr authored
      Previously, jstats_callback used drupal_write_record to insert the
      record into the {jstats_acceslog} table: due to Schema API internals,
      this meant that the whole schema was loaded, and
      DrupalCacheArray::__destruct was trying to save it to the cache
      when all the objects get destructed by PHP. However, the request
      never went farther than DRUPAL_BOOTSTRAP_DATABASE, which means that
      lock.inc isn't loaded, so lock_acquire isn't defined.
      
      With this patch, jstats_callback now simply does a straight db_insert,
      bypassing Schema API and thus fixing the problem.
      
      It should also have a positive impact on performance: the old code
      triggered the loading of all the .install file to build the schema,
      that doesn't happen anymore.
      ad024b4a
  2. Mar 30, 2012
  3. Feb 09, 2012
  4. Jan 18, 2012
  5. Jan 17, 2012
  6. Jan 16, 2012
  7. Jan 13, 2012
  8. Jan 12, 2012