summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2019-01-04 10:57:52 -0600
committerMatt Spinler <spinler@us.ibm.com>2019-01-04 10:57:52 -0600
commit8ce2ddd93c15d8a9358b4e62d2810869a413d3c0 (patch)
tree0b2fcbd6e2982ab4f8fb393d949fffaf118ead8e /src/main.cpp
parent47c09755e5a7e4c998ed9c4e82d82f7ee5cd6f43 (diff)
downloadphosphor-objmgr-8ce2ddd93c15d8a9358b4e62d2810869a413d3c0.tar.gz
phosphor-objmgr-8ce2ddd93c15d8a9358b4e62d2810869a413d3c0.zip
mapper: Don't stop after first GetAncestors result
After the first result was found, the code was breaking out instead of continuing to look for other services that also satisified the operation. This made it so a path would never contain results for more than 1 service. To fix, simply remove the break statement. Tested: Call GetAncestors on a path with an ancestor that has multiple services and ensure they all are now returned. Change-Id: I6a29b7087d4e5e9763510797e0914c2f8e160495 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e8928a9..bcf52e1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -808,7 +808,6 @@ int main(int argc, char** argv)
{
addObjectMapResult(ret, this_path,
interface_map);
- break;
}
}
}
OpenPOWER on IntegriCloud