update docHistoryStats after packing ops

This commit is contained in:
Brian Gough 2015-06-03 10:36:07 +01:00
parent 19d812734e
commit 27a3511b37

View file

@ -339,7 +339,11 @@ module.exports = PackManager =
expected: {expect_nInserted, expect_nRemoved}
), result)
else
callback(err, result)
db.docHistoryStats.update {doc_id:packObj.doc_id}, {
$inc:{update_count:-expect_nRemoved},
$currentDate:{last_packed:true}
}, {upsert:true}, () ->
callback(err, result)
deleteExpiredPackOps: (docs, callback) ->
now = Date.now()