commit | 2c823ceaefa4212b3719bfe1ab480489c891d732 | [log] [tgz] |
---|---|---|
author | Vikram Pasupathy <vpasupathy@chromium.org> | Thu Jan 18 20:43:36 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 18 20:43:36 2024 |
tree | c3ef1b4e3b486218efd1ce3094ed32288f4ebc7a | |
parent | fc1f02ecab3a77c8e5787bf7f9e8226caf3c9c16 [diff] |
media: Fix bug related to UpgradeDatabaseSchema The comment in the CL covers it pretty clearly, but to recap: The CL upgrading the DatabaseSchema only set the meta_table's Version Number and not CompatibleVersionNumber. This meant that the second and onwards usage of the CdmStorageDatabase, a call to UpgradeDatabaseSchema would be called in OpenDatabase() and would fail, leading to no writes being allowed, since the SQL would fail as we are trying to add a column that is already added. This CL fixes this by fixing the underlying issue, adding a check so that we can catch this and set the meta_table's version properly, and adds a unittests to verify that closing and opening the database the second time around still works as expected. Bug: 1454512 Change-Id: Ie5a6f160f5b1c192888ed87b7a7069419dd663a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5206434 Auto-Submit: Vikram Pasupathy <vpasupathy@chromium.org> Reviewed-by: John Rummell <jrummell@chromium.org> Commit-Queue: Vikram Pasupathy <vpasupathy@chromium.org> Cr-Commit-Position: refs/heads/main@{#1249012}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.