fix sparse page source meta info empty when load from dmatrix (#1336)

This commit is contained in:
anpark 2016-07-08 12:17:35 +08:00 committed by Tianqi Chen
parent 77d17f6264
commit 3f32b3f0eb

View File

@ -183,7 +183,7 @@ void SparsePageSource::Create(DMatrix* src,
std::unique_ptr<SparsePage> page;
writer.Alloc(&page); page->Clear();
MetaInfo info;
MetaInfo info = src->info();
size_t bytes_write = 0;
double tstart = dmlc::GetTime();
dmlc::DataIter<RowBatch>* iter = src->RowIterator();