The code looks like this:
| collection |
self session begin. collection:= self root at: self tempKey put: MagmaCollection new. self indexes do:[:each | collection addIndex: each ]. self session commit
You're sharing the index objects themselves between the two collections. Disaster! Don't do that. Adding a "each copy" should be fine..
- Chris