1
0
Fork 0

fix reported datafile size for compacted files

This commit is contained in:
Jan Steemann 2013-06-10 11:21:00 +02:00
parent 8696048dbb
commit b65fecd880
1 changed files with 2 additions and 1 deletions

View File

@ -1540,7 +1540,7 @@ int TRI_SealDatafile (TRI_datafile_t* datafile) {
/*
res = ftruncate(datafile->_fd, datafile->_currentSize);
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
*/
#else
@ -1557,6 +1557,7 @@ int TRI_SealDatafile (TRI_datafile_t* datafile) {
datafile->_isSealed = true;
datafile->_state = TRI_DF_STATE_READ;
datafile->_maximalSize = datafile->_currentSize;
}
if (! ok) {