# File lib/storage/cache.rb, line 319 def makenoswap(oid) return nil if oid.nil? @st.inc(:cache_noswap) hv = hash(oid) @cache[hv].each do |ce| next if ce.oid != oid ce.noswap! return end # This would indicate we've tried marking it noswap before we did a put. # A logic error @st.inc(:cache_noswap_misses) log.debug "Marking object nonswappable before put - #{oid}" end