Browse Source

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 năm trước cách đây
mục cha
commit
425f2b35f8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);