Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: Source/WebCore/storage/IDBLevelDBCoding.cpp

Issue 8242009: Merge 96007 - IndexedDB: Null key path gets stored as empty string key path (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/storage/IDBLevelDBCoding.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/storage/IDBLevelDBCoding.cpp
===================================================================
--- Source/WebCore/storage/IDBLevelDBCoding.cpp (revision 97254)
+++ Source/WebCore/storage/IDBLevelDBCoding.cpp (working copy)
@@ -70,6 +70,7 @@
// <database id, 0, 0, 50, object store id, 3> => is evictable [ObjectStoreMetaDataKey]
// <database id, 0, 0, 50, object store id, 4> => last "version" number [ObjectStoreMetaDataKey]
// <database id, 0, 0, 50, object store id, 5> => maximum index id ever allocated [ObjectStoreMetaDataKey]
+// <database id, 0, 0, 50, object store id, 6> => has key path (vs. null) [ObjectStoreMetaDataKey]
//
//
// Index meta-data:
@@ -857,6 +858,11 @@
return encode(databaseId, INT64_MAX, INT64_MAX);
}
+Vector<char> ObjectStoreMetaDataKey::encodeMaxKey(int64_t databaseId, int64_t objectStoreId)
+{
+ return encode(databaseId, objectStoreId, INT64_MAX);
+}
+
int64_t ObjectStoreMetaDataKey::objectStoreId() const
{
ASSERT(m_objectStoreId >= 0);
« no previous file with comments | « Source/WebCore/storage/IDBLevelDBCoding.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698