kangpinghuang commented on a change in pull request #467: change Rowset pointer
to std::shared_ptr<Rowset>
URL: https://github.com/apache/incubator-doris/pull/467#discussion_r243900398
##########
File path: be/src/olap/tablet.cpp
##########
@@ -76,7 +76,7 @@ OLAPStatus Tablet::init_once() {
for (int ser = 0; ser < _tablet_meta.rowset_size(); ++ser) {
const RowsetMeta* rs_meta = _tablet_meta.get_rs_meta(ser);
Version version = rs_meta->version();
- Rowset* rowset = new Rowset(rs_meta);
+ std::shared_ptr rowset(new Rowset(rs_meta));
_version_rowset_map[version] = rowset;
Review comment:
std::shared_ptr< Rowset > ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]