From: Yunchuan Wen Date: Fri, 9 Dec 2016 05:11:52 +0000 (+0800) Subject: filestore: use std::make_shared to replace new X-Git-Tag: v12.0.0~274^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1f2da40dc55e0241ed937fc552d49fe8757547ea;p=ceph.git filestore: use std::make_shared to replace new Signed-off-by: Yunchuan Wen --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index df0c63b89f98..f8e2744121fd 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -324,7 +324,7 @@ int FileStore::lfn_open(const coll_t& cid, TEMP_FAILURE_RETRY(::close(fd)); } } else { - *outfd = FDRef(new FDCache::FD(fd)); + *outfd = std::make_shared(fd); } if (need_lock) {