Skip to content

Commit c146111

Browse files
authored
Merge 3b49df7 into 308501b
2 parents 308501b + 3b49df7 commit c146111

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)