We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c3588c commit 265a27eCopy full SHA for 265a27e
modules/module-mongodb-storage/src/storage/implementation/MongoChecksums.ts
@@ -247,7 +247,10 @@ export class MongoChecksums {
247
},
248
last_op: { $max: '$_id.o' }
249
}
250
- }
+ },
251
+ // Sort the aggregated results (100 max, so should be fast).
252
+ // This is important to identify which buckets we have partial data for.
253
+ { $sort: { _id: 1 } }
254
],
255
{ session: undefined, readConcern: 'snapshot', maxTimeMS: lib_mongo.MONGO_CHECKSUM_TIMEOUT_MS }
256
)
0 commit comments