1
0
Fork 0

Merge branch 'devel' of https://github.com/arangodb/arangodb into devel

This commit is contained in:
jsteemann 2017-05-24 19:41:49 +02:00
commit cccb2dda8d
2 changed files with 6 additions and 1 deletions

View File

@ -193,7 +193,7 @@ void ImportFeature::validateOptions(
_chunkSize = MaxBatchSize;
}
if (_threadCount <= 1) {
if (_threadCount < 1) {
// it's not sensible to use just one thread
LOG_TOPIC(WARN, arangodb::Logger::FIXME) << "capping --threads value to "
<< 1;
@ -309,6 +309,7 @@ void ImportFeature::start() {
if (_typeImport == "csv" || _typeImport == "tsv") {
std::cout << "separator: " << _separator << std::endl;
}
std::cout << "threads: " << _threadCount << std::endl;
std::cout << "connect timeout: " << client->connectionTimeout()
<< std::endl;

View File

@ -286,6 +286,8 @@ bool ImportHelper::importDelimited(std::string const& collectionName,
}
waitForSenders();
reportProgress(totalLength, totalRead, nextProgress);
_outputBuffer.clear();
return !_hasError;
}
@ -411,6 +413,8 @@ bool ImportHelper::importJson(std::string const& collectionName,
}
waitForSenders();
reportProgress(totalLength, totalRead, nextProgress);
MUTEX_LOCKER(guard, _stats._mutex);
// this is an approximation only. _numberLines is more meaningful for CSV
// imports