[Mobies-commit] [commit] r4060 - UDM/trunk/src/UdmBase

endre at redhat1.isis.vanderbilt.edu endre at redhat1.isis.vanderbilt.edu
Fri Jun 29 02:17:32 CDT 2012


Author: endre
Date: Fri Jun 29 02:17:32 2012
New Revision: 4060

Log:
Fix one-to-many association bug in the static backend, UDM#82

Modified:
   UDM/trunk/src/UdmBase/UdmStatic.cpp

Modified: UDM/trunk/src/UdmBase/UdmStatic.cpp
==============================================================================
--- UDM/trunk/src/UdmBase/UdmStatic.cpp	Fri Jun 29 02:11:13 2012	(r4059)
+++ UDM/trunk/src/UdmBase/UdmStatic.cpp	Fri Jun 29 02:17:32 2012	(r4060)
@@ -2337,6 +2337,10 @@
 
 		for(set<ObjectImpl*>::iterator it_to_ass = to_associate.begin(); it_to_ass != to_associate.end(); it_to_ass++)
 		{
+			//remove association between peer and its peers when the model says that peer can be connected to a single object
+			if (orole.max() == 1 && mode == Udm::TARGETFROMPEER)
+				((StaticObject*)(*it_to_ass))->setAssociation(orole, vector<ObjectImpl*>(), mode, false);
+
 			//ok, create the link(increment ref. count's)
 		
 			//one for me,


More information about the Mobies-commit mailing list