From cea2e45da99681a73fa846e71fdb76526cc3b2f4 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 11 Aug 2007 20:02:34 +0000 Subject: [PATCH] A attempt to fix the user manager db4o crash bug (where you have to delete userprofiles.yap to get opensim to start) --- OpenSim/Framework/Data.DB4o/DB4oManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Data.DB4o/DB4oManager.cs b/OpenSim/Framework/Data.DB4o/DB4oManager.cs index 0e32938b6a..c582866b7e 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oManager.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oManager.cs @@ -123,7 +123,10 @@ namespace OpenSim.Framework.Data.DB4o IObjectSet result = database.Get(typeof(UserProfileData)); foreach (UserProfileData row in result) { - userProfiles.Add(row.UUID, row); + if (!userProfiles.ContainsKey(row.UUID)) + { + userProfiles.Add(row.UUID, row); + } } database.Close(); }