Skip to content

Commit

Permalink
Enabling access to global variable for each request (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
intuibase authored Apr 19, 2023
1 parent 753e02d commit afc08fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext/lifecycle.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,9 @@ void elasticApmRequestInit()
ELASTIC_APM_CALL_IF_FAILED_GOTO( ensureAllComponentsHaveLatestConfig( tracer ) );
logSupportabilityInfo( logLevel_trace );

enableAccessToServerGlobal();

if (requestCounter == 1) {
enableAccessToServerGlobal();
bool preloadDetected = detectOpcachePreload();
if (preloadDetected) {
ELASTIC_APM_LOG_DEBUG( "opcache.preload request detected on init" );
Expand Down

0 comments on commit afc08fd

Please sign in to comment.