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

Unified Diff: sql/meta_table.h

Issue 9592026: Create meta table atomically. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
Index: sql/meta_table.h
diff --git a/sql/meta_table.h b/sql/meta_table.h
index 497d9180d45692313d95d3a68561dda669161f0b..03ec705638359fa9bda08ef5e0af90dddf2d0d07 100644
--- a/sql/meta_table.h
+++ b/sql/meta_table.h
@@ -26,7 +26,8 @@ class SQL_EXPORT MetaTable {
// Initializes the MetaTableHelper, creating the meta table if necessary. For
// new tables, it will initialize the version number to |version| and the
- // compatible version number to |compatible_version|.
+ // compatible version number to |compatible_version|. Versions must be
+ // greater than 0 to distinguish missing versions (see GetVersionNumber()).
bool Init(Connection* db, int version, int compatible_version);
// Resets this MetaTable object, making another call to Init() possible.

Powered by Google App Engine
This is Rietveld 408576698