lib/bio/db/gff/digest/gfflrucache.rb in bio-gff3-0.8.7 vs lib/bio/db/gff/digest/gfflrucache.rb in bio-gff3-0.9.0
- old
+ new
@@ -82,10 +82,11 @@
# List of ids
class SeekLinkedRecs < Hash
include Helpers::Logger
def add id, rec
- info "Adding #{rec.feature_type} <#{id}>"
+ info "Adding #{rec.feature_type} (lru)",id
+ raise "ID should not be empty" if id == nil or id == ""
self[id] = [] if self[id] == nil
self[id] << rec.io_seek
end
# validation is switched off for LruCache
def validate_seqname