This is an automated email from the ASF dual-hosted git repository. cbickel 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 5ef17f1 Exclude sequences from activation log cleanup. (#2801) 5ef17f1 is described below commit 5ef17f1e2744ad0c9a35d97a7323bbf76f5032f0 Author: rodric rabbah <rod...@gmail.com> AuthorDate: Thu Sep 28 02:07:41 2017 -0400 Exclude sequences from activation log cleanup. (#2801) --- ansible/files/activations_design_document_for_activations_db.json | 2 +- ansible/files/logCleanup_design_document_for_activations_db.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/files/activations_design_document_for_activations_db.json b/ansible/files/activations_design_document_for_activations_db.json index f6a6240..565c1e9 100644 --- a/ansible/files/activations_design_document_for_activations_db.json +++ b/ansible/files/activations_design_document_for_activations_db.json @@ -2,7 +2,7 @@ "_id": "_design/activations", "views": { "byDate": { - "map": "function (doc) {\n var PATHSEP = \"/\";\n\n var isActivation = function (doc) { return (doc.activationId !== undefined) };\n\n if (isActivation(doc)) try {\n emit(doc.start, [doc._id, doc._rev])\n } catch (e) {}\n}" + "map": "function (doc) {\n if (doc.activationId !== undefined) try {\n emit(doc.start, [doc._id, doc._rev]);\n } catch (e) {}\n}" } }, "language": "javascript" diff --git a/ansible/files/logCleanup_design_document_for_activations_db.json b/ansible/files/logCleanup_design_document_for_activations_db.json index b269823..9a97a5e 100644 --- a/ansible/files/logCleanup_design_document_for_activations_db.json +++ b/ansible/files/logCleanup_design_document_for_activations_db.json @@ -2,7 +2,7 @@ "_id": "_design/logCleanup", "views": { "byDateWithLogs": { - "map": "function (doc) {\n if (doc.activationId !== undefined && doc.logs && doc.logs.length > 0) {\n emit(doc.start, doc._id);\n }\n}" + "map": "function (doc) {\n if (doc.activationId !== undefined && doc.logs && doc.logs.length > 0) try {\n var deleteLogs = true;\n for (i = 0; i < doc.annotations.length; i++) {\n var a = doc.annotations[i];\n if (a.key == \"kind\") {\n deleteLogs = a.value != \"sequence\";\n break;\n }\n }\n if (deleteLogs) {\n emit(doc.start, doc._id);\n }\n } catch (e) {}\n}" } }, "language": "javascript" -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].