Skip to content

Commit afc08fd

Browse files
authored
Enabling access to global variable for each request (#920)
1 parent 753e02d commit afc08fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ext/lifecycle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,9 @@ void elasticApmRequestInit()
590590
ELASTIC_APM_CALL_IF_FAILED_GOTO( ensureAllComponentsHaveLatestConfig( tracer ) );
591591
logSupportabilityInfo( logLevel_trace );
592592

593+
enableAccessToServerGlobal();
593594

594595
if (requestCounter == 1) {
595-
enableAccessToServerGlobal();
596596
bool preloadDetected = detectOpcachePreload();
597597
if (preloadDetected) {
598598
ELASTIC_APM_LOG_DEBUG( "opcache.preload request detected on init" );

0 commit comments

Comments
 (0)