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