diff options
author | Michael Lentine <mlentine@google.com> | 2015-05-27 17:39:22 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-27 17:39:23 +0000 |
commit | 338142aa81fa4e67065e82cc45bea8424db3a7f4 (patch) | |
tree | 1b23a3d2fbad9da8f8e7b0aa63e9596fe2abb751 /include | |
parent | 4b7ddd6105c44b01b473c5ed1035b6be34ba19e2 (diff) | |
parent | 60788050236ff77f84675e12efe9dba098e49870 (diff) | |
download | system_core-338142aa81fa4e67065e82cc45bea8424db3a7f4.zip system_core-338142aa81fa4e67065e82cc45bea8424db3a7f4.tar.gz system_core-338142aa81fa4e67065e82cc45bea8424db3a7f4.tar.bz2 |
Merge "Adding a build id check to blob cache." into mnc-dev
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/BlobCache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/utils/BlobCache.h b/include/utils/BlobCache.h index 7d621e4..65dca9f 100644 --- a/include/utils/BlobCache.h +++ b/include/utils/BlobCache.h @@ -185,6 +185,12 @@ private: // mNumEntries is number of cache entries following the header in the // data. size_t mNumEntries; + + // mBuildId is the build id of the device when the cache was created. + // When an update to the build happens (via an OTA or other update) this + // is used to invalidate the cache. + int mBuildIdLength; + char mBuildId[]; }; // An EntryHeader is the header for a serialized cache entry. No need to |