| 1 |
diff --git a/strokedb-ruby/lib/stores/chainable_storage.rb b/strokedb-ruby/lib/stores/chainable_storage.rb |
| 2 |
index 5326c92..1e2de8f 100644 |
| 3 |
--- a/strokedb-ruby/lib/stores/chainable_storage.rb |
| 4 |
+++ b/strokedb-ruby/lib/stores/chainable_storage.rb |
| 5 |
@@ -44,9 +44,7 @@ module StrokeDB |
| 6 |
def save_with_chained_storages!(chunk,source=nil) |
| 7 |
perform_save!(chunk) |
| 8 |
(@chained_storages||{}).each_pair do |storage,savings| |
| 9 |
- unless storage == chunk |
| 10 |
- savings << chunk unless savings.include?(chunk) |
| 11 |
- end |
| 12 |
+ savings << chunk unless storage == chunk || savings.include?(chunk) |
| 13 |
end |
| 14 |
end |