From 4bd3d119a354cd4374c54779defad4aba8514a9b Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 23 Apr 2014 16:57:04 +0200 Subject: [PATCH] comment out full database linear search for the API for now. --- pdns/ws-auth.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 75855a4d81..0cf9dec7ac 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); } -- 2.47.2