mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Add test to check persistence of newly added pre-linked objects
Added a MockRegionDataPlugin to do in-memory persistence for tests since adding this to OpenSim.Data.Null.NullDataStore doesn't seem appropriate NullDataStore can do nothing because OpenSim only ever retrieve region objects from the database on startup. Adding an in-memory store here would be unecessary overhead.
This commit is contained in:
@@ -684,7 +684,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerOnBackup(IRegionDataStore dstore)
|
||||
public void TriggerOnBackup(IRegionDataStore dstore, bool forced)
|
||||
{
|
||||
OnBackupDelegate handlerOnAttach = OnBackup;
|
||||
if (handlerOnAttach != null)
|
||||
@@ -693,7 +693,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
try
|
||||
{
|
||||
d(dstore, false);
|
||||
d(dstore, forced);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user