From 9caf3dbc378a59e4df8e7301252047c8ecf8218c Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 12 Mar 2014 13:43:05 -0700 Subject: [PATCH] Migrator: use a null ref instead of NULL when calling into path_traverse Signed-off-by: Greg Farnum --- src/mds/Migrator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 969cb8b050e67..b0cb41849cbba 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; -- 2.39.5