Index database before getting Uri Descendants

onGetSliceDescendants would return empty results if
the call was made before the database was indexed.
This CL checks the index before building the list.

Change-Id: I2e0f88893138a048dbd529d465d68fa4b1a3dc12
Fixes: 78196823
Test: robotests
This commit is contained in:
Matthew Fritze
2018-04-24 15:30:20 -07:00
parent 77e716e463
commit 838d69da50
7 changed files with 47 additions and 8 deletions

View File

@@ -89,6 +89,7 @@ public class SlicesDatabaseAccessor {
* @return a list of keys in the Slices database matching on {@param isPlatformSlice}.
*/
public List<String> getSliceKeys(boolean isPlatformSlice) {
verifyIndexing();
final String whereClause;
if (isPlatformSlice) {