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 years ago
parent
commit
425f2b35f8
1 changed files with 1 additions and 1 deletions
  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);