Skip to content

Commit 4472125

Browse files
authored
Fixed empty error from CMS create tenant request (#12977)
1 parent 27d8720 commit 4472125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/base/path.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ TString::const_iterator PathPartBrokenAt(const TString &part, const TStringBuf e
221221
bool CheckDbPath(const TString &path, const TString &domain, TString &error) {
222222
auto parts = SplitPath(path);
223223

224-
if (parts.empty()) {
224+
if (parts.size() < 2) {
225225
error = "Database path cannot be empty or root";
226226
return false;
227227
}

0 commit comments

Comments
 (0)