mirror of https://gitee.com/bigwinds/arangodb
fixed issue #2342
This commit is contained in:
parent
2a21c54975
commit
737698151d
|
@ -1,6 +1,8 @@
|
|||
devel
|
||||
-----
|
||||
|
||||
* fixed issue #2342
|
||||
|
||||
* change default string truncation length from 80 characters to 256 characters for
|
||||
`print`/`printShell` functions in ArangoShell and arangod. This will emit longer
|
||||
prefixes of string values before truncating them with `...`, which is helpful
|
||||
|
|
|
@ -250,10 +250,15 @@ bool ImportHelper::importDelimited(std::string const& collectionName,
|
|||
_errorMessage = TRI_LAST_ERROR_STR;
|
||||
return false;
|
||||
} else if (n == 0) {
|
||||
// we have read the entire file
|
||||
// now have the CSV parser parse an additional new line so it
|
||||
// will definitely process the last line of the input data if
|
||||
// it did not end with a newline
|
||||
TRI_ParseCsvString(&parser, "\n", 1);
|
||||
break;
|
||||
}
|
||||
|
||||
totalRead += (int64_t)n;
|
||||
totalRead += static_cast<int64_t>(n);
|
||||
reportProgress(totalLength, totalRead, nextProgress);
|
||||
|
||||
TRI_ParseCsvString(&parser, buffer, n);
|
||||
|
@ -354,7 +359,7 @@ bool ImportHelper::importJson(std::string const& collectionName,
|
|||
checkedFront = true;
|
||||
}
|
||||
|
||||
totalRead += (int64_t)n;
|
||||
totalRead += static_cast<int64_t>(n);
|
||||
reportProgress(totalLength, totalRead, nextProgress);
|
||||
|
||||
if (_outputBuffer.length() > _maxUploadSize) {
|
||||
|
|
Loading…
Reference in New Issue