File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ return them to available inventory if they do not.
371
371
372
372
# First Pass: Find any carts that are active and refresh the carted items
373
373
for cart in db.cart.find(
374
- { '_id': {'$in': carted.keys() },
374
+ { '_id': {'$in': carted.keys() },
375
375
'status':'active'}):
376
376
cart = carted[cart['_id']]
377
377
@@ -391,11 +391,9 @@ return them to available inventory if they do not.
391
391
{ '$inc': { 'qty': carted_item['qty'] },
392
392
'$pull': { 'carted': { 'cart_id': cart_id } } })
393
393
394
- TODO edit and polish the next paragraph.
395
-
396
- To summarize: This operation finds all "carted" items that have
397
- time stamps older than the threshold. Then, the process makes two
398
- passes over these items:
394
+ To summarize: This operation finds all "carted" items that have time
395
+ stamps older than the threshold. Then, the process makes two passes
396
+ over these items:
399
397
400
398
#. Of the items with time stamps older than the threshold, if the cart
401
399
is still active, it resets the time stamp to maintain the carts.
Original file line number Diff line number Diff line change @@ -487,6 +487,6 @@ shard the collection
487
487
... key : { '_id': 1 } })
488
488
{ "collectionsharded": "cms.assets.chunks", "ok": 1}
489
489
490
- Note that sharding on the ``_id`` field ensures routable queries because all reads
491
- from GridFS must first look up the document in ``cms.assets.files``
492
- and then look up the chunks separately.
490
+ Sharding on the ``_id`` field ensures routable queries because all
491
+ reads from GridFS must first look up the document in
492
+ ``cms.assets.files`` and then look up the chunks separately.
You can’t perform that action at this time.
0 commit comments