]> granicus.if.org Git - pdns/commitdiff
comment out full database linear search for the API for now.
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 23 Apr 2014 14:57:04 +0000 (16:57 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 23 Apr 2014 14:57:04 +0000 (16:57 +0200)
pdns/ws-auth.cc

index 75855a4d81eea4851aa5d08ed4c022b24e777633..0cf9dec7ace021ac8ed7af88e4b0032025f82783 100644 (file)
@@ -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);
 }