diff options
author | Yan, Zheng <zyan@redhat.com> | 2018-08-16 10:14:40 +0200 |
---|---|---|
committer | Yan, Zheng <zyan@redhat.com> | 2018-08-16 10:14:40 +0200 |
commit | c0d3e5b3da8ebb81266b6470d0c15c13dae8238c (patch) | |
tree | a879057c6e2ea4c13de594b6433d6cb0f79a9f25 /src/mds/SnapServer.cc | |
parent | msg: add msgref cast method (diff) | |
download | ceph-c0d3e5b3da8ebb81266b6470d0c15c13dae8238c.tar.xz ceph-c0d3e5b3da8ebb81266b6470d0c15c13dae8238c.zip |
msg: define MFoo::create helper
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Diffstat (limited to 'src/mds/SnapServer.cc')
-rw-r--r-- | src/mds/SnapServer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mds/SnapServer.cc b/src/mds/SnapServer.cc index 67e08b23431..7da7fbe0d7b 100644 --- a/src/mds/SnapServer.cc +++ b/src/mds/SnapServer.cc @@ -262,7 +262,7 @@ bool SnapServer::_notify_prep(version_t tid) assert(version == tid); for (auto &p : active_clients) { - auto m = MMDSTableRequest::factory::build(table, TABLESERVER_OP_NOTIFY_PREP, 0, version); + auto m = MMDSTableRequest::create(table, TABLESERVER_OP_NOTIFY_PREP, 0, version); m->bl = bl; mds->send_message_mds(m, p); } @@ -277,7 +277,7 @@ void SnapServer::handle_query(const MMDSTableRequest::const_ref &req) auto p = req->bl.cbegin(); decode(op, p); - auto reply = MMDSTableRequest::factory::build(table, TABLESERVER_OP_QUERY_REPLY, req->reqid, version); + auto reply = MMDSTableRequest::create(table, TABLESERVER_OP_QUERY_REPLY, req->reqid, version); switch (op) { case 'F': // full @@ -349,7 +349,7 @@ void SnapServer::check_osd_map(bool force) if (!all_purge.empty()) { dout(10) << "requesting removal of " << all_purge << dendl; - auto m = MRemoveSnaps::factory::build(all_purge); + auto m = MRemoveSnaps::create(all_purge); mon_client->send_mon_message(m.detach()); } |