Skip to content

Commit 30d48aa

Browse files
committed
don't return childrenExist prop for databases (ydb-platform#15297)
1 parent 6bfbfb2 commit 30d48aa

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
@@ -1724,7 +1724,6 @@
17241724
},
17251725
{
17261726
"ACL": "",
1727-
"ChildrenExist": false,
17281727
"CreateFinished": true,
17291728
"CreateStep": "not-zero-number-text",
17301729
"CreateTxId": "not-zero-number-text",
@@ -1738,7 +1737,6 @@
17381737
},
17391738
{
17401739
"ACL": "",
1741-
"ChildrenExist": false,
17421740
"CreateFinished": true,
17431741
"CreateStep": "not-zero-number-text",
17441742
"CreateTxId": "not-zero-number-text",
@@ -1752,7 +1750,6 @@
17521750
},
17531751
{
17541752
"ACL": "",
1755-
"ChildrenExist": false,
17561753
"CreateFinished": true,
17571754
"CreateStep": "not-zero-number-text",
17581755
"CreateTxId": "not-zero-number-text",
@@ -1980,7 +1977,6 @@
19801977
},
19811978
"Self": {
19821979
"ACL": "",
1983-
"ChildrenExist": true,
19841980
"CreateFinished": true,
19851981
"CreateStep": "0",
19861982
"CreateTxId": "not-zero-number-text",
@@ -2061,7 +2057,6 @@
20612057
},
20622058
"Self": {
20632059
"ACL": "",
2064-
"ChildrenExist": false,
20652060
"CreateFinished": true,
20662061
"CreateStep": "0",
20672062
"CreateTxId": "not-zero-number-text",
@@ -2158,7 +2153,6 @@
21582153
},
21592154
"Self": {
21602155
"ACL": "",
2161-
"ChildrenExist": true,
21622156
"CreateFinished": true,
21632157
"CreateStep": "0",
21642158
"CreateTxId": "not-zero-number-text",

0 commit comments

Comments
 (0)