Loading src/authdb.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -259,6 +259,17 @@ namespace authdb { return; } if(_AdminBackend.end()<=sizeof(authdb::AuthHeader)){ // Force a prefetch to attempt retrieving domain data from the cluster. // If we do not call lock_shared, prefetch is skipped, meaning transient // background fetch failures will leave the node fully deadlocked // looping on 503 cluster data unavailable without retrying. { AuthBackend::Guard prefetch_guard(_AdminBackend, AuthBackend::Shared); } } if(_AdminBackend.end()<=sizeof(authdb::AuthHeader)){ // API requests should get JSON error, not the wizard HTML if(curreq.getRequestURL().compare(0,4,"/api",4)==0){ Loading Loading
src/authdb.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -259,6 +259,17 @@ namespace authdb { return; } if(_AdminBackend.end()<=sizeof(authdb::AuthHeader)){ // Force a prefetch to attempt retrieving domain data from the cluster. // If we do not call lock_shared, prefetch is skipped, meaning transient // background fetch failures will leave the node fully deadlocked // looping on 503 cluster data unavailable without retrying. { AuthBackend::Guard prefetch_guard(_AdminBackend, AuthBackend::Shared); } } if(_AdminBackend.end()<=sizeof(authdb::AuthHeader)){ // API requests should get JSON error, not the wizard HTML if(curreq.getRequestURL().compare(0,4,"/api",4)==0){ Loading