Commit 2fc05c15 authored by jan.koester's avatar jan.koester
Browse files

test

parent d1609616
Loading
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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){