Skip to content

Commit 5138d14

Browse files
Brett ShirleyBrett Shirley (from Dev Box)
authored andcommitted
Create DIR, BTDown, and a few others are getting incorrect iors for going to the root page
[Substrate:820948da8f21285819fef075c94a740f30a8002f]
1 parent 5c970af commit 5138d14

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

dev/ese/src/ese/bt.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7861,7 +7861,12 @@ ERR ErrBTIOpen(
78617861
ERR ErrBTIGotoRoot( FUCB *pfucb, LATCH latch )
78627862
{
78637863
ERR err;
7864-
PIBTraceContextScope tcScope = TcBTICreateCtxScope( pfucb, iorsBTOpen );
7864+
7865+
// this is a utility function used not only in BTOpen, but many places, we should inherit
7866+
// the iors from whom called us. there are many SP functions calling this, it may be some
7867+
// could use enhancement setting a more contextually correct iors.
7868+
auto tc = TcCurr();
7869+
PIBTraceContextScope tcScope = TcBTICreateCtxScope( pfucb, tc.iorReason.Iors() != iorsNone ? tc.iorReason.Iors() : iorsBTOpen );
78657870

78667871
// should have no page latched
78677872
//

0 commit comments

Comments
 (0)