Skip to content

Commit

Permalink
HPCC-30948 Ensure dafilesrv starts if config is missing
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Nov 30, 2023
1 parent afa5393 commit d7c603e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fs/dafilesrv/dafilesrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,13 @@ int main(int argc, const char* argv[])
throttleSlowQueueLimit = throttleQueueLimit;
#endif

Owned<IPropertyTree> dummyDafileSrvInstance;
if (nullptr == dafileSrvInstance)
throw makeStringException(-1, "dafilesrv: configuration section missing");
{
PROGLOG("WARNING: no dafilesrv configuration, default settings will be used");
dummyDafileSrvInstance.setown(createPTree());
dafileSrvInstance = dummyDafileSrvInstance;
}
maxThreads = dafileSrvInstance->getPropInt("@maxThreads", maxThreads);
maxThreadsDelayMs = dafileSrvInstance->getPropInt("@maxThreadsDelayMs", maxThreadsDelayMs);
maxAsyncCopy = dafileSrvInstance->getPropInt("@maxAsyncCopy", maxAsyncCopy);
Expand Down

0 comments on commit d7c603e

Please sign in to comment.