Skip to content

Commit a53f741

Browse files
IBX-6173: Added indexes to ezcontentobject_attribute and ezurl_object_link tables
1 parent 20bebf9 commit a53f741

File tree

6 files changed

+329
-322
lines changed

6 files changed

+329
-322
lines changed

.sonarcloud.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonar.exclusions=**/Tests/**/_fixtures/*

eZ/Bundle/EzPublishCoreBundle/Resources/config/storage/legacy/schema.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ tables:
242242
sort_key_string: { fields: [sort_key_string], options: { lengths: ['191'] } }
243243
ezcontentobject_attribute_language_code: { fields: [language_code] }
244244
sort_key_int: { fields: [sort_key_int] }
245+
ezcontentobject_attribute_co_id_ver: { fields: [contentobject_id, version] }
245246
id:
246247
id: { type: integer, nullable: false, options: { autoincrement: true } }
247248
version: { type: integer, nullable: false, options: { default: '0' } }
@@ -547,6 +548,7 @@ tables:
547548
ezurl_ol_coa_id: { fields: [contentobject_attribute_id] }
548549
ezurl_ol_url_id: { fields: [url_id] }
549550
ezurl_ol_coa_version: { fields: [contentobject_attribute_version] }
551+
ezurl_ol_coa_id_cav: { fields: [contentobject_attribute_id, contentobject_attribute_version] }
550552
fields:
551553
contentobject_attribute_id: { type: integer, nullable: false, options: { default: '0' } }
552554
contentobject_attribute_version: { type: integer, nullable: false, options: { default: '0' } }

eZ/Publish/Core/MVC/Symfony/Security/Authentication/RepositoryAuthenticationProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class RepositoryAuthenticationProvider extends DaoAuthenticationProvider impleme
2424
{
2525
use LoggerAwareTrait;
2626

27+
private const USLEEP_MULTIPLIER = 1000000;
28+
2729
/** @var float|null */
2830
private $constantAuthTime;
2931

@@ -114,7 +116,9 @@ private function sleepUsingConstantTimer(float $startTime): void
114116

115117
$remainingTime = $this->constantAuthTime - (microtime(true) - $startTime);
116118
if ($remainingTime > 0) {
117-
usleep($remainingTime * 1000000);
119+
$microseconds = $remainingTime * self::USLEEP_MULTIPLIER;
120+
121+
usleep((int)$microseconds);
118122
} elseif ($this->logger) {
119123
$this->logger->warning(
120124
sprintf(

0 commit comments

Comments
 (0)