mirror of https://gitee.com/bigwinds/arangodb
fixed stats
This commit is contained in:
parent
82c98dc11f
commit
41b18ade20
|
@ -239,9 +239,9 @@ void DatafileStatistics::increaseDead(TRI_voc_fid_t fid, int64_t number, int64_t
|
|||
}
|
||||
|
||||
auto& dst = (*it).second;
|
||||
dst->numberDead++;
|
||||
dst->numberDead += number;
|
||||
dst->sizeDead += size;
|
||||
dst->numberAlive--;
|
||||
dst->numberAlive -= number;
|
||||
dst->sizeAlive -= size;
|
||||
}
|
||||
|
||||
|
@ -292,7 +292,6 @@ DatafileStatisticsContainer DatafileStatistics::get(TRI_voc_fid_t fid) {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
DatafileStatisticsContainer DatafileStatistics::all() {
|
||||
size_t count;
|
||||
DatafileStatisticsContainer result;
|
||||
{
|
||||
READ_LOCKER(_lock);
|
||||
|
@ -300,12 +299,8 @@ DatafileStatisticsContainer DatafileStatistics::all() {
|
|||
for (auto& it : _stats) {
|
||||
result.update(*(it.second));
|
||||
}
|
||||
|
||||
count = _stats.size();
|
||||
}
|
||||
|
||||
LOG_INFO("DEBUGGING FIGURES: NUMBER OF FILES MAPPED: %llu, UNCOLLECTED: %llu", (unsigned long long) count, (unsigned long long) result.numberUncollected);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -1037,7 +1037,7 @@ static bool CompactifyDocumentCollection(TRI_document_collection_t* document) {
|
|||
DatafileStatisticsContainer dfi = document->_datafileStatistics.get(df->_fid);
|
||||
|
||||
if (dfi.numberUncollected > 0) {
|
||||
LOG_INFO("cannot compact file %llu because it still has uncollected entries", (unsigned long long) df->_fid);
|
||||
LOG_TRACE("cannot compact file %llu because it still has uncollected entries", (unsigned long long) df->_fid);
|
||||
start = i + 1;
|
||||
break;
|
||||
}
|
||||
|
@ -1094,7 +1094,7 @@ static bool CompactifyDocumentCollection(TRI_document_collection_t* document) {
|
|||
|
||||
TRI_ASSERT(reason != nullptr);
|
||||
|
||||
LOG_INFO(
|
||||
LOG_TRACE(
|
||||
"found datafile eligible for compaction. fid: %llu, size: %llu, "
|
||||
"reason: %s, "
|
||||
"numberDead: %llu, numberAlive: %llu, numberDeletions: %llu, "
|
||||
|
|
Loading…
Reference in New Issue