Backed out changeset 562c3fe054e5 (bug 702559)

This commit is contained in:
Ed Morley 2013-06-26 12:56:11 +01:00
parent 30907456d8
commit 17a1feeac3
2 changed files with 3 additions and 3 deletions

View File

@ -1163,7 +1163,7 @@ MetricsStorageSqliteBackend.prototype = Object.freeze({
// 1. Create the schema.
yield self._connection.executeTransaction(function ensureSchema(conn) {
let schema = yield conn.getSchemaVersion();
let schema = conn.schemaVersion;
if (schema == 0) {
self._log.info("Creating database schema.");
@ -1172,7 +1172,7 @@ MetricsStorageSqliteBackend.prototype = Object.freeze({
yield self._connection.execute(SQL[k]);
}
yield self._connection.setSchemaVersion(1);
self._connection.schemaVersion = 1;
doCheckpoint = true;
} else if (schema != 1) {
throw new Error("Unknown database schema: " + schema);

View File

@ -80,7 +80,7 @@ add_task(function test_reconnect() {
add_task(function test_future_schema_errors() {
let backend = yield Metrics.Storage("future_schema_errors");
yield backend._connection.setSchemaVersion(2);
backend._connection.schemaVersion = 2;
yield backend.close();
let backend2;