Remove coldboot from vold
coldboot is now taken care by ueventd, so removing the duplicate
logic to save boottime.
This CL also fixes a missing lock.
Bug: 33786699
Test: manual
Change-Id: I71270252f3153abc815d142b5da7a9cb85b94dac
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 2085ca8..4a649bb 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -350,6 +350,7 @@
}
void VolumeManager::addDiskSource(const std::shared_ptr<DiskSource>& diskSource) {
+ std::lock_guard<std::mutex> lock(mLock);
mDiskSources.push_back(diskSource);
}