Commit e82142d
gpcheckperf: fixing string parsing in parseMultiDDResult()
Issue:
After updating gpssh to return string output, gpcheckperf failed to parse results.
RCA:
String before gpssh changes: "'multidd total bytes '"
String after gpssh fix: "multidd total bytes '"
In parseMultiDDResult(), str.Find() before gpssh changes were returning index 1
as it was getting string starting with "'".
Post gpssh changes, substring is as the beginning of the string hence returning index 0.
Fix:
str.find() returns -1 if the substring is not found otherwise returns index.
As the substring searched in parseMultiDDResult() is appearing at index zero,
corrected condition to include index zero.1 parent 957a7e8 commit e82142d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
0 commit comments