/// <summary>Change the current global namespace.</summary>
 /// <remarks>Do NOT call this, unless you know exactly what you are doing !</remarks>
 internal void ChangeRoot(FdbSubspace subspace, IFdbDirectory directory, bool readOnly)
 {
     subspace = subspace ?? FdbSubspace.Empty;
     lock (this)            //TODO: don't use this for locking
     {
         m_readOnly        = readOnly;
         m_globalSpace     = subspace;
         m_globalSpaceCopy = subspace.Copy();
         m_directory       = directory == null ? null : new FdbDatabasePartition(this, directory);
     }
 }
 /// <summary>Change the current global namespace.</summary>
 /// <remarks>Do NOT call this, unless you know exactly what you are doing !</remarks>
 internal void ChangeRoot(IKeySubspace subspace, IFdbDirectory directory, bool readOnly)
 {
     //REVIEW: rename to "ChangeRootSubspace" ?
     subspace = subspace ?? KeySubspace.Empty;
     lock (this)            //TODO: don't use this for locking
     {
         m_readOnly        = readOnly;
         m_globalSpace     = subspace.Copy(TuPack.Encoding);
         m_globalSpaceCopy = subspace.Copy(TuPack.Encoding);                 // keep another copy
         m_directory       = directory == null ? null : new FdbDatabasePartition(this, directory);
     }
 }
 /// <summary>Change the current global namespace.</summary>
 /// <remarks>Do NOT call this, unless you know exactly what you are doing !</remarks>
 internal void ChangeRoot(IFdbSubspace subspace, IFdbDirectory directory, bool readOnly)
 {
     //REVIEW: rename to "ChangeRootSubspace" ?
     subspace = subspace ?? FdbSubspace.Empty;
     lock (this)            //TODO: don't use this for locking
     {
         m_readOnly        = readOnly;
         m_globalSpace     = FdbSubspace.CopyDynamic(subspace, TypeSystem.Tuples);
         m_globalSpaceCopy = FdbSubspace.CopyDynamic(subspace, TypeSystem.Tuples);                 // keep another copy
         m_directory       = directory == null ? null : new FdbDatabasePartition(this, directory);
     }
 }