ok, here again: Fix-Mongo-OID.cs
http://forum.world.st/file/n4705649/Fix-Mongo-OID.cs :)
EstebanLM wrote
file not found :)On Aug 29, 2013, at 2:44 PM, jan.struz lt;
public+pharo@
gt; wrote: Hi, feel free to use integrate the following fix:
Fix-Mongo-OID.cs
lt;http://forum.world.st/file/n4705616/Fix-Mongo-OID.csgt;Jan
Sabine Knöfel wrote Hi Esteban, All, I was proceeding to seach for
the reason of the problem I described yesterday. I added some
debugging code into VOMongoSerializerensurePersisted: and the problem
I described, did NOT occur. That made the whole process slower...and
I had an idea I was looking into UUIDGenerator default
makeSeed. Then I tried the following code: |theOld theNew|
1 timesRepeat: [theNew := UUIDGenerator default makeSeed.
theNew = theOld ifTrue: [self halt].theOld := theNew] The
debugger came up! Doesn't that mean that, if the code is run very fast,
there are double OIDs generated?! In my case, the objects for country
and currency are very lightweight and so, they are created very fast.
Also, the error occured much more often within my fast production EC2
instance as at my (old and slow) development pc. Important: I work
with windows and so makeUnixSeed returns nil... :-) What is your
opinion about that? Sabine - Save The World! --
View this message in context:
http://forum.world.st/voyage-mongo-randomly-wrong-OIDs-tp4705396p4705619.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-
Save The World!
--
View this message in context:
http://forum.world.st/voyage-mongo-randomly-wrong-OIDs-tp4705396p4705649.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.