From: bert hubert Date: Wed, 23 Apr 2014 14:57:04 +0000 (+0200) Subject: comment out full database linear search for the API for now. X-Git-Tag: rec-3.6.0-rc1~46^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bd3d119a354cd4374c54779defad4aba8514a9b;p=pdns comment out full database linear search for the API for now. --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 75855a4d8..0cf9dec7a 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -809,7 +809,8 @@ static void apiServerSearchData(HttpRequest* req, HttpResponse* resp) { if (di.zone == q) { continue; } - + // the code below is too slow +#if 0 di.backend->list(di.zone, di.id, true); // incl. disabled while(di.backend->get(rr)) { if (!rr.qtype.getCode()) @@ -850,7 +851,9 @@ static void apiServerSearchData(HttpRequest* req, HttpResponse* resp) { object.AddMember("content", jcontent, doc.GetAllocator()); doc.PushBack(object, doc.GetAllocator()); } +#endif } + resp->setBody(doc); }