monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] Revision 8db39ceb7eeb9f4da513c92466fbe6ce38bfb2


From: monotone
Subject: [Monotone-commits-diffs] Revision 8db39ceb7eeb9f4da513c92466fbe6ce38bfb2f0
Date: Sun, 21 Jan 2007 06:04:36 +0100

-----------------------------------------------------------------
Revision: 8db39ceb7eeb9f4da513c92466fbe6ce38bfb2f0
Ancestor: 6f34d22b2cf474413252d27b9c3c01d305ed8aa8
Author: address@hidden
Date: 2007-01-21T04:10:49
Branch: net.venge.monotone

Modified files:
        ChangeLog database.cc database.hh monotone.cc
        schema_migration.cc schema_migration.hh
        tests/dump_on_crash/__driver__.lua

ChangeLog: 

        * database.cc (sql_contexts): Delete write-only variable and all
        code that touches it.
        (database::check_format): Fix grammar error.
        (check_sqlite_format_version): Delete.
        (database::sql): Restructure with a single N-way mode argument.
        Move logic for creating new databases ...
        (database::initialize): ... here.  Use open() directly.
        (database::ensure_open_for_maintenance)
        (database::check_db_nonexistent): New functions.
        (database::dump, database::load, database::version, database::migrate)
        (database::test_migration_step): Use new functions as
        appropriate. Don't call close().
        (database::info): Similarly.  Do a dummy query first thing to force
        sqlite to look at the file and tell us if it's a database or not.
        (database::close): Collapse into database destructor.
        (database::open): Use assert_sqlite3_ok instead of hand-rolled
        diagnostic; special case SQLITE_NOMEM.
        (assert_sqlite3_ok): Move to ...
        * schema_migration.cc: ... here; merge with 'error'.  Adjust users
        of 'error' to match.  Add aux message for SQLITE_{CORRUPT,NOTADB}.
        Don't give aux message for SQLITE_ERROR anymore.  Special case
        SQLITE_NOMEM.
        * schema_migration.hh, database.hh: Update declarations.
        * monotone.cc (cpp_main): Report bad_alloc as what it is: memory
        exhaustion, not a bug.
        * tests/dump_on_crash: Adjust to match.

Attachment: txtT3hdCtwasQ.txt
Description: Diff [6f34d22b2cf474413252d27b9c3c01d305ed8aa8] -> [8db39ceb7eeb9f4da513c92466fbe6ce38bfb2f0]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]