소스 검색

HPCC-17702 Fix migratefiles mid-group offset issue.

If a file had been created on a subset of a group's nodes,
e.g. thor400_30[16-17] - the target group name was incorrectly
offset by -1.

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 8 년 전
부모
커밋
425f2b35f8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dali/daliadmin/daliadmin.cpp

+ 1 - 1
dali/daliadmin/daliadmin.cpp

@@ -2985,7 +2985,7 @@ static void migrateFiles(const char *srcGroup, const char *tgtGroup, const char
                                 if (NotFound == groupOffset)
                                     groupOffset = srcRelPos;
                                 unsigned dstRelPos = srcRelPos % tgtClusterSize;
-                                dstPositions.append(dstRelPos);
+                                dstPositions.append(dstRelPos+1);
                             }
                             StringBuffer rangeText;
                             encodeChildGroupRange(dstPositions, rangeText);