Skip to content

Commit 4d0fb2e

Browse files
authored
don't return childrenExist prop for databases (#15297)
1 parent 370d541 commit 4d0fb2e

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

ydb/core/tx/schemeshard/schemeshard_path_describer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ void TPathDescriber::FillChildDescr(NKikimrSchemeOp::TDirEntry* descr, TPathElem
176176
descr->SetCreateStep(ui64(pathEl->StepCreated));
177177
}
178178

179-
descr->SetChildrenExist(pathEl->GetAliveChildren() > 0);
179+
if (pathEl->PathType != NKikimrSchemeOp::EPathTypeSubDomain
180+
&& pathEl->PathType != NKikimrSchemeOp::EPathTypeExtSubDomain) {
181+
descr->SetChildrenExist(pathEl->GetAliveChildren() > 0);
182+
}
180183

181184
if (pathEl->PathType == NKikimrSchemeOp::EPathTypePersQueueGroup) {
182185
auto it = Self->Topics.FindPtr(pathEl->PathId);

ydb/core/viewer/tests/canondata/result.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,6 @@
15121512
},
15131513
{
15141514
"ACL": "",
1515-
"ChildrenExist": false,
15161515
"CreateFinished": true,
15171516
"CreateStep": "not-zero-number-text",
15181517
"CreateTxId": "not-zero-number-text",
@@ -1526,7 +1525,6 @@
15261525
},
15271526
{
15281527
"ACL": "",
1529-
"ChildrenExist": false,
15301528
"CreateFinished": true,
15311529
"CreateStep": "not-zero-number-text",
15321530
"CreateTxId": "not-zero-number-text",
@@ -1540,7 +1538,6 @@
15401538
},
15411539
{
15421540
"ACL": "",
1543-
"ChildrenExist": false,
15441541
"CreateFinished": true,
15451542
"CreateStep": "not-zero-number-text",
15461543
"CreateTxId": "not-zero-number-text",
@@ -1768,7 +1765,6 @@
17681765
},
17691766
"Self": {
17701767
"ACL": "",
1771-
"ChildrenExist": true,
17721768
"CreateFinished": true,
17731769
"CreateStep": "0",
17741770
"CreateTxId": "not-zero-number-text",
@@ -1849,7 +1845,6 @@
18491845
},
18501846
"Self": {
18511847
"ACL": "",
1852-
"ChildrenExist": false,
18531848
"CreateFinished": true,
18541849
"CreateStep": "0",
18551850
"CreateTxId": "not-zero-number-text",
@@ -1946,7 +1941,6 @@
19461941
},
19471942
"Self": {
19481943
"ACL": "",
1949-
"ChildrenExist": true,
19501944
"CreateFinished": true,
19511945
"CreateStep": "0",
19521946
"CreateTxId": "not-zero-number-text",

0 commit comments

Comments
 (0)