[Glass] migrate problem

Dale Henrichs dale.henrichs at gemtalksystems.com
Thu Jan 16 08:37:38 PST 2014


I am not a migration expert and I haven't read the docs (yet), but in
reading the code, I think that you are supposed to send the #migrate
message to instances of your class ...

Have you looked at GsDeployer? I think the following will do a pretty good
job of migrating the instances for you:

  GsDeployer bulkMigrate: ["add instance variable to class"]

in fact I think right now you should be able to do:

  GsDeployer bulkMigrate: ["empty block"]

and get "pending migrations performed"....


On Thu, Jan 16, 2014 at 7:25 AM, Norbert Hartl <norbert at hartl.name> wrote:

> I have one class hierarchy that has between 40 and 50 Mio. instances. Now
> I needed to add an instVar to the root of the hierarchy. Doing it with
> gemtools I switched off auto migration and loaded the monticello package
> containing the changed. But now I have problems migrating the instances
> manually.
> COEvent allSubclasses  size
> gives 5 while
> COEvent classHistory first allSubclasses size
> gives 23. A
> COEvent classHistory first migrateTo: COEvent
> didn’t do the trick. And
> COEvent migrate
> gives me
> a MessageNotUnderstood occurred (error 2010), a Metaclass3 does not
> understand  #’migrationDestination'
> I’m using
> GemStone version ‚'
> Any hints,
> Norbert
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140116/7c06d32e/attachment-0001.html>

More information about the Glass mailing list