Dist module_paths/files.db
Help debugging finder issues by disting module_paths/files.db for later analysis. Bug: 157656545 Test: treehugger Change-Id: Idfa4cffe7ef724b399a2667efd487f9c3c76bb6b
This commit is contained in:
@@ -325,7 +325,12 @@ func (f *Finder) FindMatching(rootPath string, filter WalkFunc) []string {
|
||||
// Shutdown declares that the finder is no longer needed and waits for its cleanup to complete
|
||||
// Currently, that only entails waiting for the database dump to complete.
|
||||
func (f *Finder) Shutdown() {
|
||||
f.waitForDbDump()
|
||||
f.WaitForDbDump()
|
||||
}
|
||||
|
||||
// WaitForDbDump returns once the database has been written to f.DbPath.
|
||||
func (f *Finder) WaitForDbDump() {
|
||||
f.shutdownWaitgroup.Wait()
|
||||
}
|
||||
|
||||
// End of public api
|
||||
@@ -345,10 +350,6 @@ func (f *Finder) goDumpDb() {
|
||||
}
|
||||
}
|
||||
|
||||
func (f *Finder) waitForDbDump() {
|
||||
f.shutdownWaitgroup.Wait()
|
||||
}
|
||||
|
||||
// joinCleanPaths is like filepath.Join but is faster because
|
||||
// joinCleanPaths doesn't have to support paths ending in "/" or containing ".."
|
||||
func joinCleanPaths(base string, leaf string) string {
|
||||
|
Reference in New Issue
Block a user