File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -795,7 +795,8 @@ void TViewerPipeClient::HandleResolve(TEvStateStorage::TEvBoardInfo::TPtr& ev) {
795
795
if (DatabaseBoardInfoResponse->IsOk ()) {
796
796
ReplyAndPassAway (MakeForward (GetNodesFromBoardReply (DatabaseBoardInfoResponse->GetRef ())));
797
797
} else {
798
- ReplyAndPassAway (GetHTTPBADREQUEST (" text/plain" , " Failed to resolve database - no nodes found" ));
798
+ Direct = true ;
799
+ Bootstrap ();
799
800
}
800
801
}
801
802
}
@@ -825,6 +826,7 @@ void TViewerPipeClient::RedirectToDatabase(const TString& database) {
825
826
Become (&TViewerPipeClient::StateResolveDatabase);
826
827
}
827
828
829
+ // Call only from Bootstrap() method
828
830
bool TViewerPipeClient::NeedToRedirect () {
829
831
if (Event) {
830
832
Direct |= !Event->Get ()->Request .GetHeader (" X-Forwarded-From-Node" ).empty (); // we're already forwarding
You can’t perform that action at this time.
0 commit comments