This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 701b1a8 Adapt limit to query db view as per couch db change (#4388)
701b1a8 is described below
commit 701b1a847c436d14f97ad04a1c6c801ae04ea5b4
Author: Su <[email protected]>
AuthorDate: Mon Mar 25 19:35:35 2019 +0100
Adapt limit to query db view as per couch db change (#4388)
Co-authored-by: steffenrost <[email protected]>
---
.../scala/org/apache/openwhisk/core/invoker/NamespaceBlacklist.scala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/core/invoker/src/main/scala/org/apache/openwhisk/core/invoker/NamespaceBlacklist.scala
b/core/invoker/src/main/scala/org/apache/openwhisk/core/invoker/NamespaceBlacklist.scala
index f52ce0f..4c8fcd2 100644
---
a/core/invoker/src/main/scala/org/apache/openwhisk/core/invoker/NamespaceBlacklist.scala
+++
b/core/invoker/src/main/scala/org/apache/openwhisk/core/invoker/NamespaceBlacklist.scala
@@ -47,6 +47,7 @@ class NamespaceBlacklist(authStore: AuthStore) {
def isBlacklisted(identity: Identity): Boolean =
blacklist.contains(identity.namespace.name.asString)
/** Refreshes the current blacklist from the database. */
+ /** Limit query parameter set to 0 for limitless record query. */
def refreshBlacklist()(implicit ec: ExecutionContext, tid: TransactionId):
Future[Set[String]] = {
authStore
.query(
@@ -54,7 +55,7 @@ class NamespaceBlacklist(authStore: AuthStore) {
startKey = List.empty,
endKey = List.empty,
skip = 0,
- limit = Int.MaxValue,
+ limit = 0,
includeDocs = false,
descending = true,
reduce = false,