public async Task BTreeStructure() { var treeName = GetStringQueryString("name", required: true); using (ContextPool.AllocateOperationContext(out DocumentsOperationContext context)) using (var tx = context.OpenReadTransaction()) { var tree = tx.InnerTransaction.ReadTree(treeName) ?? throw new InvalidOperationException("Tree name '" + treeName + "' was not found. Existing trees: " + string.Join(", ", GetTreeNames(tx.InnerTransaction, RootObjectType.VariableSizeTree)) ); HttpContext.Response.ContentType = "text/html"; await DebugStuff.DumpTreeToStreamAsync(tree, ResponseBodyStream()); } }