Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18986

[eZ Pending Actions] 2 records in less than one second

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.7.0alpha1
    • 2011.10, 4.4.1, 4.5.0, 4.6.0
    • Misc
    • None
    • eZ Publish 4.5

    Description

      Hi!

      We use for our client eZ Pending Action Class. But we are forced to make a kernel override because you can not add more one record per second ... Otherwise the last record overwrites the last.

      This is a problem for maintaining the site over time.

      There is a pull request for changes done on our platform (if it can be used)

      Thanks

      Steps to reproduce

      Use this code in an extension:

      for($i=0;$i<50;$i++) {
      
          $rowPending = array(
              'action'        => 'index_object',
              'created'       => time(),
              'param'         => $i
          );
          
          $pendingItem = new eZPendingActions( $rowPending );
          $pendingItem->store();
      

      Only one row will show up in the //ezpending_actions// table, instead of 50.

      The bug looks to show only if we use //time()// in the //created// attribute. If we use //NULL// everything looks correct.

      Attachments

        Activity

          People

            dp@ez.no dp@ez.no
            rc@ez.no rc@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: