Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenplieger committed Sep 13, 2024
1 parent 47186df commit 61a5b8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions adagucserverEC/CAutoConfigure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,6 @@ int CAutoConfigure::getFileNameForDataSource(CDataSource *dataSource, std::strin
bool removeRequiredDims = false;
if (dataSource->requiredDims.size() == 0) {
removeRequiredDims = true;
if (CAutoConfigure::autoConfigureDimensions(dataSource) != 0) {
CDBWarning("Unable to autoconfigure dims");
}
if (dataSource->cfgLayer->Dimension.size() > 0) {
try {
CRequest::fillDimValuesForDataSource(dataSource, dataSource->srvParams);
Expand Down
5 changes: 5 additions & 0 deletions adagucserverEC/CDBFileScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,11 @@ int CDBFileScanner::updatedb(CDataSource *dataSource, CT::string *_tailPath, CT:
CDBDebug("Obtained filename from layer configuration [%s]", dataSource->cfgLayer->FilePath[0]->value.c_str());
} else {
std::string fileName;
if (dataSource->requiredDims.size() == 0) {
if (CAutoConfigure::autoConfigureDimensions(dataSource) != 0) {
CDBWarning("Unable to autoconfigure dims");
}
}
if (CAutoConfigure::getFileNameForDataSource(dataSource, fileName) != 0) {
CDBDebug("Unable to getFileNameForDataSource");
return 1;
Expand Down

0 comments on commit 61a5b8a

Please sign in to comment.