瀏覽代碼

HPCC-9420 Pass offset setting to remote copy

This is a bug in the existing code.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Kevin Wang 12 年之前
父節點
當前提交
08ef294354
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      esp/services/ws_fs/ws_fsService.cpp

+ 7 - 1
esp/services/ws_fs/ws_fsService.cpp

@@ -2404,7 +2404,13 @@ bool CFileSprayEx::onCopy(IEspContext &context, IEspCopy &req, IEspCopyResponse
                 wuFSpecDest->setClusterPartDiskMapping(val, baseDir.str(), destCluster.str());
             else
                 wuFSpecDest->setClusterPartDiskMapping(val, baseDir.str(), destCluster.str(), true);
-            wuOptions->setReplicate(val==DFUcpdm_c_replicated_by_d);
+            if (val != DFUcpdm_c_replicated_by_d)
+                wuOptions->setReplicate(false);
+            else
+            {
+                wuOptions->setReplicate(true);
+                wuFSpecDest->setReplicateOffset(offset);
+            }
             if (!supercopy)
                 wuOptions->setSuppressNonKeyRepeats(true);            // **** only repeat last part when src kind = key
         }