From: Greg Farnum Date: Wed, 12 Mar 2014 20:43:05 +0000 (-0700) Subject: Migrator: use a null ref instead of NULL when calling into path_traverse X-Git-Tag: v0.80-rc1~84^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9caf3dbc378a59e4df8e7301252047c8ecf8218c;p=ceph.git Migrator: use a null ref instead of NULL when calling into path_traverse Signed-off-by: Greg Farnum --- diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 969cb8b050e6..b0cb41849cbb 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -1871,7 +1871,8 @@ void Migrator::handle_export_discover(MExportDirDiscover *m) // must discover it! filepath fpath(m->get_path()); vector trace; - int r = cache->path_traverse(NULL, m, NULL, fpath, &trace, NULL, MDS_TRAVERSE_DISCOVER); + MDRequestRef null_ref; + int r = cache->path_traverse(null_ref, m, NULL, fpath, &trace, NULL, MDS_TRAVERSE_DISCOVER); if (r > 0) return; if (r < 0) { dout(7) << "handle_export_discover_2 failed to discover or not dir " << m->get_path() << ", NAK" << dendl;