)]}'
{
  "commit": "c014ee4660fd1d9eb57859f100bdad457126e413",
  "tree": "1a2245561532ab4d63c134a72725054445f252bb",
  "parents": [
    "13f74f3ced707fd794ce0dc889abfdb29e0496da"
  ],
  "author": {
    "name": "Amin Hassani",
    "email": "ahassani@chromium.org",
    "time": "Fri Mar 19 20:54:47 2021"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Wed Apr 07 17:13:51 2021"
  },
  "message": "update_engine: Fix a bug with P2P updates when there are multiple payload\n\nIt seems currently, the implementaion opens the file descriptor for\nwriting the P2P file only once even if there are multiple payloads. This\nis a bug for example where there are DLCs being updated in addition to\nthe platform update. This CL closes the FD everytime a payload is\nsucessfully downloaded and opens it every time a new payload is starting\nto be downloaded.\n\nUnfortunately this can\u0027t be tested easily locally. So we need to land\nthis patch and then use DUTs in the lab to perform a p2p updates (using\ncanary builds) when DLCs are available to make sure this CL is correct.\n\nBUG\u003db:172219304\nTEST\u003dcros_workon_make --board reef --test update_engine\n\nChange-Id: If02035937288be84eb66a5c3abda87bce6ecdb09\nReviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2776259\nTested-by: Amin Hassani \u003cahassani@chromium.org\u003e\nReviewed-by: Jae Hoon Kim \u003ckimjae@chromium.org\u003e\nReviewed-by: Vyshu Khota \u003cvyshu@chromium.org\u003e\nCommit-Queue: Amin Hassani \u003cahassani@chromium.org\u003e\n(cherry picked from commit 3774de980a5e2eb815178b6a1fa8257dbd767de9)\nReviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2809342\nAuto-Submit: Amin Hassani \u003cahassani@chromium.org\u003e\nCommit-Queue: Jae Hoon Kim \u003ckimjae@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ea84f2c9969f0ed8cd3bcfb5fe43226a0f234833",
      "old_mode": 33188,
      "old_path": "cros/download_action_chromeos.cc",
      "new_id": "0cc9f81ceee6b0b8aa467b40f4ee0dbaf1e19baf",
      "new_mode": 33188,
      "new_path": "cros/download_action_chromeos.cc"
    },
    {
      "type": "modify",
      "old_id": "e56c25c2d9a7bb96c56c9c3c405608fd1824a244",
      "old_mode": 33188,
      "old_path": "cros/download_action_chromeos_unittest.cc",
      "new_id": "fb78744d6cadcf06c0a87840e760e2843e03c946",
      "new_mode": 33188,
      "new_path": "cros/download_action_chromeos_unittest.cc"
    }
  ]
}
