)]}'
{
  "commit": "96e06002edc374511c545d96ae9b2b7c1e8d78ec",
  "tree": "892b239251044c49d2f8a9dc817559d20ac02e6c",
  "parents": [
    "1977124ee3012d5198ff424a57cd28b47eff6050"
  ],
  "author": {
    "name": "Makoto Onuki",
    "email": "omakoto@google.com",
    "time": "Fri Aug 24 13:38:40 2018 -0700"
  },
  "committer": {
    "name": "Makoto Onuki",
    "email": "omakoto@google.com",
    "time": "Fri Aug 24 15:07:21 2018 -0700"
  },
  "message": "Truncate(*1) it if WAL file is too big when opening DB\n\n*1 -- not truncate(2) but \"PRAGMA wal_checkpoint(TRUNCATE)\"\n\nOtherwise, depending on how an app operate on a DB, SQLite may not\nhave a chance to \"shrink\" the WAL file.\n\nFixes: 112777941\nBug: 111939259\nTest: atest /android/master/frameworks/base/core/tests/coretests/src/android/database/sqlite/SQLiteCompatibilityWalFlagsTest.java\nTest: Manual test with google dailer:\n1. With normalized_spam.db-wal \u003e 100MB and receive a phone call\n-\u003e WAL file gets truncated to 0 bytes.\n\n2. Restart the dialer process and receive a phone call again\n-\u003e WAL file is already 0 bytes; won\u0027t be truncated.\n\n3. Restart with the WAL file deleted\nSame as #2. WAL file will be created before the added logic, but is 0 bytes,\nso it won\u0027t be truncated.\n\n4. Test with settings put global sqlite_compatibility_wal_flags truncate_size\u003d1024\n-\u003e make sure the threshold is overridden\n\nChange-Id: I2b193603e5dfa493ccccb8123db592f0e9c0e7ae\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5bf3a7c43640c579a20aa9d0ebbbaee228ead3a6",
      "old_mode": 33188,
      "old_path": "core/java/android/database/sqlite/SQLiteCompatibilityWalFlags.java",
      "new_id": "06c069c583b51dae3ca0e5a66e40ac86ac795dbd",
      "new_mode": 33188,
      "new_path": "core/java/android/database/sqlite/SQLiteCompatibilityWalFlags.java"
    },
    {
      "type": "modify",
      "old_id": "3ca852a34594617b5a5dc5975dac903303c79b04",
      "old_mode": 33188,
      "old_path": "core/java/android/database/sqlite/SQLiteConnection.java",
      "new_id": "5c4f16a7cf3db88020cb3cc3222dd0bd1a5c29f0",
      "new_mode": 33188,
      "new_path": "core/java/android/database/sqlite/SQLiteConnection.java"
    },
    {
      "type": "modify",
      "old_id": "e6b6acf7b8eecd528e35338bc1104420661a2650",
      "old_mode": 33188,
      "old_path": "core/java/android/database/sqlite/SQLiteGlobal.java",
      "new_id": "67e5f65d5a1f809684c8ebaa13e5c26e97afc5f1",
      "new_mode": 33188,
      "new_path": "core/java/android/database/sqlite/SQLiteGlobal.java"
    },
    {
      "type": "modify",
      "old_id": "7980af12b8215f0bd21a900921a75f41c605dae4",
      "old_mode": 33188,
      "old_path": "core/java/android/provider/Settings.java",
      "new_id": "bffed8dcfdf2a39dbdd0a103962888193bfa0c28",
      "new_mode": 33188,
      "new_path": "core/java/android/provider/Settings.java"
    },
    {
      "type": "modify",
      "old_id": "c664abf551005bdce68e0c40e06343d622aa7086",
      "old_mode": 33188,
      "old_path": "core/res/res/values/config.xml",
      "new_id": "289c898a923cecf2b466a5f5eb63c5b52f383438",
      "new_mode": 33188,
      "new_path": "core/res/res/values/config.xml"
    },
    {
      "type": "modify",
      "old_id": "9cf6ac6a61afaaf11d91db241e44ae318cba0b83",
      "old_mode": 33188,
      "old_path": "core/res/res/values/symbols.xml",
      "new_id": "53588303fcd54a6b81e4f50ebfb96e1a81265555",
      "new_mode": 33188,
      "new_path": "core/res/res/values/symbols.xml"
    },
    {
      "type": "modify",
      "old_id": "230655de8a00ba138aa2da5059b90784997a4df6",
      "old_mode": 33188,
      "old_path": "core/tests/coretests/src/android/database/sqlite/SQLiteCompatibilityWalFlagsTest.java",
      "new_id": "551a58ed7cb53cc6253a32a048e4e7ccd4d873fe",
      "new_mode": 33188,
      "new_path": "core/tests/coretests/src/android/database/sqlite/SQLiteCompatibilityWalFlagsTest.java"
    }
  ]
}
