瀏覽代碼

HPCC-8742 Changes following review

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 9 年之前
父節點
當前提交
b935526a53
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      dali/daliadmin/daliadmin.cpp

+ 3 - 4
dali/daliadmin/daliadmin.cpp

@@ -775,8 +775,9 @@ static void displayDirectory(IPropertyTree * directory, const char * options, un
 static void dfsLs(const char *name, const char *options, bool safe = false)
 {
     StringBuffer xpath;
-    Owned<IRemoteConnection> conn = connectXPathOrFile("/Files",safe,xpath);
-    if (!conn) {
+    Owned<IRemoteConnection> conn = querySDS().connect("Files",myProcessSession(),0, daliConnectTimeoutMs);
+    if (!conn)
+    {
         ERRLOG("Could not connect to %s","/Files");
         return;
     }
@@ -786,8 +787,6 @@ static void dfsLs(const char *name, const char *options, bool safe = false)
         if (directory)
             displayDirectory(directory, options, 0);
     }
-    conn->commit();
-    conn->close();
 }
 
 //=============================================================================