Saving estate state is really slow (relatively) and it gets

completely rewritten every time a region starts up. This
makes the data write only when the data was not already
read from the database.

There is a still a major race condition whenever two regions
share the same estate data, but at least it won't be triggered
on startup.
This commit is contained in:
Mic Bowman
2012-05-10 09:08:40 -07:00
parent d8a78374aa
commit de44734fe9
3 changed files with 13 additions and 9 deletions

View File

@@ -618,10 +618,11 @@ namespace OpenSim
return;
}
PopulateRegionEstateInfo(regInfo);
bool changed = PopulateRegionEstateInfo(regInfo);
IScene scene;
CreateRegion(regInfo, true, out scene);
regInfo.EstateSettings.Save();
if (changed)
regInfo.EstateSettings.Save();
}
/// <summary>