Repository: camel Updated Branches: refs/heads/master 2f80b8e31 -> 3e1178afa
Add the oid to the output so if there are multiple files with the same name, they can be distinguished Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3e1178af Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3e1178af Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3e1178af Branch: refs/heads/master Commit: 3e1178afa05f91ac897db51ea56e83d204d98989 Parents: 2f80b8e Author: Daniel Kulp <dk...@apache.org> Authored: Thu Mar 3 13:37:03 2016 -0500 Committer: Daniel Kulp <dk...@apache.org> Committed: Thu Mar 3 13:37:03 2016 -0500 ---------------------------------------------------------------------- .../java/org/apache/camel/component/gridfs/GridFsProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/3e1178af/components/camel-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsProducer.java ---------------------------------------------------------------------- diff --git a/components/camel-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsProducer.java b/components/camel-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsProducer.java index 58416b1..dccb499 100644 --- a/components/camel-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsProducer.java +++ b/components/camel-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsProducer.java @@ -118,7 +118,7 @@ public class GridFsProducer extends DefaultProducer { } while (cursor.hasNext() && current.length() < 4000) { DBObject o = cursor.next(); - current.append(o.get("filename")).append("\n"); + current.append(o.get("filename")).append("\t").append(o.get("_id")).append("\n"); } } @Override