lib/rbbt/persist.rb in rbbt-util-5.27.1 vs lib/rbbt/persist.rb in rbbt-util-5.27.2

- old
+ new

@@ -405,11 +405,10 @@ repo = repo.find if Path === repo repo = Persist.open_tokyocabinet(repo, false, :list, "BDB") repo.read_and_close do keys = repo.range subkey + 0.chr, true, subkey + 254.chr, true end - repo.close else repo.read_and_close do keys = repo.range subkey + 0.chr, true, subkey + 254.chr, true end end @@ -459,16 +458,16 @@ repo[subkey + entities.id << ":" << "SINGLE"] = tsv_values when (not Array === entities or (AnnotatedArray === entities and AnnotatedArray === entities.first)) entities.each_with_index do |e,i| next if e.nil? tsv_values = e.tsv_values("literal", "annotation_types", "JSON") - repo[subkey + e.id << ":ANNOTATED_DOUBLE_ARRAY:" << i.to_s] = tsv_values + repo[subkey + "ANNOTATED_DOUBLE_ARRAY:" << i.to_s] = tsv_values end else entities.each_with_index do |e,i| next if e.nil? tsv_values = e.tsv_values("literal", "annotation_types", "JSON") - repo[subkey + e.id << ":" << i.to_s] = tsv_values + repo[subkey + i.to_s] = tsv_values end end end entities