mirror of https://gitee.com/bigwinds/arangodb
fix reported datafile size for compacted files
This commit is contained in:
parent
8696048dbb
commit
b65fecd880
|
@ -1540,7 +1540,7 @@ int TRI_SealDatafile (TRI_datafile_t* datafile) {
|
||||||
/*
|
/*
|
||||||
res = ftruncate(datafile->_fd, datafile->_currentSize);
|
res = ftruncate(datafile->_fd, datafile->_currentSize);
|
||||||
Linux centric problems:
|
Linux centric problems:
|
||||||
Under windows can not reduce size of the memory mapped file without unmappping it!
|
Under windows can not reduce size of the memory mapped file without unmapping it!
|
||||||
However, apparently we may have users
|
However, apparently we may have users
|
||||||
*/
|
*/
|
||||||
#else
|
#else
|
||||||
|
@ -1557,6 +1557,7 @@ int TRI_SealDatafile (TRI_datafile_t* datafile) {
|
||||||
|
|
||||||
datafile->_isSealed = true;
|
datafile->_isSealed = true;
|
||||||
datafile->_state = TRI_DF_STATE_READ;
|
datafile->_state = TRI_DF_STATE_READ;
|
||||||
|
datafile->_maximalSize = datafile->_currentSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! ok) {
|
if (! ok) {
|
||||||
|
|
Loading…
Reference in New Issue