diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-09-21 23:10:35 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-09-21 23:10:35 +0000 |
commit | 08e6ac30c7a7b3ad4d5f666047569753e8309a48 (patch) | |
tree | dae50f52f0feab27b99840bd90933bff782b5421 | |
parent | b92d2cd521f6b7cb3e23cac7b1647bb69ed235dc (diff) | |
parent | 1b535e41fd6c1b666cf806aae782cf621b7782bc (diff) | |
download | vold-android10-qpr1-c-release.tar.gz |
Snap for 5892339 from 1b535e41fd6c1b666cf806aae782cf621b7782bc to qt-qpr1-releaseandroid-10.0.0_r29android-10.0.0_r28android-10.0.0_r27android-10.0.0_r26android-10.0.0_r25android-10.0.0_r24android-10.0.0_r23android-10.0.0_r22android-10.0.0_r21android-10.0.0_r20android-10.0.0_r19android-10.0.0_r18android-10.0.0_r16android-10.0.0_r15android10-qpr1-releaseandroid10-qpr1-d-releaseandroid10-qpr1-c-s1-releaseandroid10-qpr1-c-releaseandroid10-qpr1-b-s1-releaseandroid10-qpr1-b-release
Change-Id: Ibb3cf7ec9163d5870c6b51d8d14bdf4985b63feb
-rw-r--r-- | Checkpoint.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Checkpoint.cpp b/Checkpoint.cpp index c8af08c2..3f688f8f 100644 --- a/Checkpoint.cpp +++ b/Checkpoint.cpp @@ -244,6 +244,11 @@ bool cp_needsRollback() { } bool cp_needsCheckpoint() { + // Make sure we only return true during boot. See b/138952436 for discussion + static bool called_once = false; + if (called_once) return isCheckpointing; + called_once = true; + bool ret; std::string content; sp<IBootControl> module = IBootControl::getService(); @@ -317,6 +322,8 @@ static void cp_healthDaemon(std::string mnt_pnt, std::string blk_device, bool is } // namespace Status cp_prepareCheckpoint() { + // Log to notify CTS - see b/137924328 for context + LOG(INFO) << "cp_prepareCheckpoint called"; if (!isCheckpointing) { return Status::ok(); } |