Skip to content

Commit d028a4a

Browse files
committed
Finalization of V33.
1 parent 3d80fa2 commit d028a4a

File tree

5 files changed

+187
-150
lines changed

5 files changed

+187
-150
lines changed

BTDB/BTDB.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
<RepositoryType>git</RepositoryType>
2828
</PropertyGroup>
2929
<ItemGroup>
30-
<PackageReference Include="Microsoft.Extensions.Primitives" Version="8.0.0"/>
30+
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.0"/>
31+
<PackageReference Include="Microsoft.Extensions.Primitives" Version="9.0.0"/>
3132
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
3233
<ProjectReference Include="../BTDB.SourceGenerator/BTDB.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
3334
<None Include="../README.md" Pack="true" PackagePath="/"/>

BTDB/BTreeLib/Cursor12.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public Cursor12(RootNode12 rootNode)
2828
public void SetNewRoot(IRootNode artRoot)
2929
{
3030
var newRoot = (RootNode12)artRoot;
31-
if (newRoot.Impl != _rootNode.Impl)
32-
throw new ArgumentException("SetNewRoot allows only same db instance");
3331
_rootNode = (RootNode12)artRoot;
3432
if (_stack.Count > 0)
3533
{
34+
if (newRoot.Impl != _rootNode.Impl)
35+
throw new ArgumentException("SetNewRoot allows only same db instance");
3636
_stack[0]._node = _rootNode.Root;
3737
}
3838
}

0 commit comments

Comments
 (0)