dubeejw commented on a change in pull request #2832: Do not cache invalidate
when adding a DB attachment
URL:
https://github.com/apache/incubator-openwhisk/pull/2832#discussion_r154181859
##########
File path: common/scala/src/main/scala/whisk/core/entity/WhiskAction.scala
##########
@@ -315,7 +315,8 @@ object WhiskAction extends DocumentFactory[WhiskAction]
with WhiskEntityQueries[
val manifest = exec.manifest.attached.get
for (i1 <- super.put(db, newDoc);
- i2 <- attach[A](db, i1, manifest.attachmentName,
manifest.attachmentType, stream)) yield i2
+ i2 <- attach[A](db, newDoc.revision(i1.rev),
manifest.attachmentName, manifest.attachmentType, stream))
Review comment:
`i1` is of type `docinfo` and we need to pass a document as the second
argument for `attach`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services