1
0
Fork 0

ensure there is a datafile info entry for each datafile of a collection

This commit is contained in:
Jan Steemann 2015-03-18 15:01:31 +01:00
parent 5c8cfecc9e
commit b5fb457d7b
1 changed files with 5 additions and 0 deletions

View File

@ -1792,6 +1792,11 @@ static bool OpenIterator (TRI_df_marker_t const* marker,
res = OpenIteratorHandleAbortMarker(marker, datafile, (open_iterator_state_t*) data);
}
else {
if (marker->_type == TRI_DF_MARKER_HEADER) {
// ensure there is a datafile info entry for each datafile of the collection
TRI_FindDatafileInfoDocumentCollection(document, datafile->_fid, true);
}
LOG_TRACE("skipping marker type %lu", (unsigned long) marker->_type);
res = TRI_ERROR_NO_ERROR;
}