From 4d538297efc28dffc7d4f50d1a20f07629a6d09d Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 26 Oct 2005 23:01:56 +0000 Subject: [PATCH] error out if we get a duplicate create --- direct/src/distributed/DoCollectionManager.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/direct/src/distributed/DoCollectionManager.py b/direct/src/distributed/DoCollectionManager.py index a055cf860a..f32d90b699 100755 --- a/direct/src/distributed/DoCollectionManager.py +++ b/direct/src/distributed/DoCollectionManager.py @@ -233,10 +233,15 @@ class DoCollectionManager: doTable = self.getDoTable(ownerView) - #assert do.doId not in doTable + # make sure the object is not already present if do.doId in doTable: - print "ignoring repeated object %s" % (do.doId) - return + if ownerView: + tableName = 'doId2ownerView' + else: + tableName = 'doId2do' + self.notify.error('doId %s already in %s [%s stomping %s]' % ( + do.doId, tableName, do.__class__.__name__, + doTable[do.doId].__class__.__name__)) doTable[do.doId]=do