MagmaInvalidOid situation

Chris Muller asqueaker at gmail.com
Wed Jun 17 18:11:06 UTC 2009


> 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


More information about the Magma mailing list