|
@@ -713,7 +713,9 @@ public:
|
|
|
throw MakeStringException(ROXIE_FILE_ERROR, "Cannot write %s", fileName.str());
|
|
|
// filename by now may be a local filename, or a dali one
|
|
|
Owned<IRoxieDaliHelper> daliHelper = connectToDali();
|
|
|
- Owned<ILocalOrDistributedFile> ldFile = createLocalOrDistributedFile(fileName, NULL, false, !resolveLocally(), true);
|
|
|
+ bool onlyLocal = fileNameServiceDali.isEmpty();
|
|
|
+ bool onlyDFS = !resolveLocally() && !onlyLocal;
|
|
|
+ Owned<ILocalOrDistributedFile> ldFile = createLocalOrDistributedFile(fileName, NULL, onlyLocal, onlyDFS, true);
|
|
|
if (!ldFile)
|
|
|
throw MakeStringException(ROXIE_FILE_ERROR, "Cannot write %s", fileName.str());
|
|
|
return createRoxieWriteHandler(daliHelper, ldFile.getClear(), clusters);
|