mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
This commit is contained in:
commit
20d66e53b6
|
@ -1484,15 +1484,17 @@ static bool OpenIterator (TRI_df_marker_t const* marker, void* data, TRI_datafil
|
||||||
// update the header info
|
// update the header info
|
||||||
UpdateHeader(datafile, marker, found, &update);
|
UpdateHeader(datafile, marker, found, &update);
|
||||||
update._validTo = 0;
|
update._validTo = 0;
|
||||||
|
|
||||||
// update the datafile info
|
// update the datafile info
|
||||||
dfi = TRI_FindDatafileInfoPrimaryCollection(primary, found->_fid);
|
dfi = TRI_FindDatafileInfoPrimaryCollection(primary, found->_fid);
|
||||||
|
|
||||||
if (dfi != NULL) {
|
if (dfi != NULL) {
|
||||||
size_t length = LengthDataMasterPointer(found);
|
size_t length = LengthDataMasterPointer(found);
|
||||||
|
|
||||||
|
/*
|
||||||
|
issue #411: if we decrease here, the counts might get negative!
|
||||||
dfi->_numberAlive -= 1;
|
dfi->_numberAlive -= 1;
|
||||||
dfi->_sizeAlive -= length;
|
dfi->_sizeAlive -= length;
|
||||||
|
*/
|
||||||
|
|
||||||
dfi->_numberDead += 1;
|
dfi->_numberDead += 1;
|
||||||
dfi->_sizeDead += length;
|
dfi->_sizeDead += length;
|
||||||
|
@ -1504,7 +1506,6 @@ static bool OpenIterator (TRI_df_marker_t const* marker, void* data, TRI_datafil
|
||||||
dfi->_numberAlive += 1;
|
dfi->_numberAlive += 1;
|
||||||
dfi->_sizeAlive += LengthDataMasterPointer(&update);
|
dfi->_sizeAlive += LengthDataMasterPointer(&update);
|
||||||
}
|
}
|
||||||
|
|
||||||
// update immediate indexes
|
// update immediate indexes
|
||||||
UpdateImmediateIndexes(collection, found, &update);
|
UpdateImmediateIndexes(collection, found, &update);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue