-
Couldn't load subscription status.
- Fork 259
Upgrade mongodb to 4.8.1 (min version supporting mongo 6) #497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,6 +105,15 @@ module.exports = { | |
| // ╠═╝╠╦╝║ ║║ ║╣ ╚═╗╚═╗ │││├─┤ │ │└┐┌┘├┤ ├┬┘├┤ │ │ │├┬┘ │││ └─┐ │ | ||
| // ╩ ╩╚═╚═╝╚═╝╚═╝╚═╝╚═╝ ┘└┘┴ ┴ ┴ ┴ └┘ └─┘ ┴└─└─┘└─┘└─┘┴└──┴┘└─└─┘─┘ | ||
| // Process record(s) (mutate in-place) to wash away adapter-specific eccentricities. | ||
|
|
||
| var index = 0; | ||
|
|
||
| _.each(s3q.newRecords, function (record){ | ||
| record.id = nativeResult.insertedIds[index]; | ||
| ++index; | ||
| }); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it normally |
||
|
|
||
| nativeResult.ops = s3q.newRecords; | ||
| var phRecords = nativeResult.ops; | ||
| try { | ||
| _.each(phRecords, function (phRecord){ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,9 @@ module.exports = { | |
| // Otherwise, IWMIH we'll be sending back a record: | ||
| // ============================================ | ||
|
|
||
| s3q.newRecord.id = nativeResult.insertedId; | ||
| nativeResult.ops = [s3q.newRecord]; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mike: Hmmm, why mutate |
||
|
|
||
| // Sanity check: Verify that there is only one record. | ||
| if (nativeResult.ops.length !== 1) { | ||
| return exits.error(new Error('Consistency violation: Unexpected # of records returned from Mongo (in `.ops`). Native result:\n```\n'+util.inspect(nativeResult, {depth: 5})+'\n```')); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this comment?