# File lib/mongo/operation/update/result.rb, line 42 def matched_count return 0 unless acknowledged? if upsert? 0 else n end end