Преглед изворни кода

Merge pull request #3529 from richardkchapman/userdesc-errors

HPCC-8079 Compile errors related to IUserDescriptor refactoring

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday пре 12 година
родитељ
комит
a07213efc3
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      dali/regress/daregress.cpp
  2. 2 2
      plugins/fileservices/fileservices.cpp

+ 1 - 1
dali/regress/daregress.cpp

@@ -306,7 +306,7 @@ static bool setupDFS(const char *scope, unsigned supersToDel=3, unsigned subsToC
     for (unsigned i=1; i<=supersToDel; i++) {
         StringBuffer super = buf;
         super.append("::super").append(i);
-        if (dir.exists(super.str(),false,true) && !dir.removeEntry(super.str(), user)) {
+        if (dir.exists(super.str(),user,false,true) && !dir.removeEntry(super.str(), user)) {
             ERROR1("Can't remove %s", super.str());
             return false;
         }

+ 2 - 2
plugins/fileservices/fileservices.cpp

@@ -369,7 +369,7 @@ FILESERVICES_API bool FILESERVICES_CALL fsFileExists(ICodeContext *ctx, const ch
     if (physical)
         return queryDistributedFileDirectory().existsPhysical(lfn.str(),ctx->queryUserDescriptor());
 
-    return queryDistributedFileDirectory().exists(lfn.str(),false,false,ctx->queryUserDescriptor());
+    return queryDistributedFileDirectory().exists(lfn.str(),ctx->queryUserDescriptor(),false,false);
 }
 
 FILESERVICES_API bool FILESERVICES_CALL fsFileValidate(ICodeContext *ctx, const char *name)
@@ -1036,7 +1036,7 @@ FILESERVICES_API bool FILESERVICES_CALL fsSuperFileExists(ICodeContext *ctx, con
 {
     StringBuffer lsfn;
     constructLogicalName(ctx, lsuperfn, lsfn);
-    return queryDistributedFileDirectory().exists(lsfn,false,true);
+    return queryDistributedFileDirectory().exists(lsfn,ctx->queryUserDescriptor(),false,true);
 }
 
 FILESERVICES_API void FILESERVICES_CALL fsDeleteSuperFile(ICodeContext *ctx, const char *lsuperfn,bool deletesub)