Rev 447: When creating the database for the first time, unset the incremental flag. in http://bazaar.launchpad.net/~jameinel/loggerhead/incremental_import

John Arbash Meinel john at arbash-meinel.com
Thu Jan 27 20:28:52 UTC 2011


At http://bazaar.launchpad.net/~jameinel/loggerhead/incremental_import

------------------------------------------------------------
revno: 447
revision-id: john at arbash-meinel.com-20110127202841-hwk0yadev2u3r3bs
parent: john at arbash-meinel.com-20110127163725-h7dopgv2ciwvgn9l
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: incremental_import
timestamp: Thu 2011-01-27 14:28:41 -0600
message:
  When creating the database for the first time, unset the incremental flag.
  
  I had disabled this auto detection in the code because it screws up perf
  testing sometimes. But it is a big win for real deployments.
-------------- next part --------------
=== modified file 'loggerhead/history_db.py'
--- a/loggerhead/history_db.py	2010-07-07 20:09:44 +0000
+++ b/loggerhead/history_db.py	2011-01-27 20:28:41 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2010 Canonical Ltd
+# Copyright (C) 2010, 2011 Canonical Ltd
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -121,7 +121,7 @@
                 trace.note('history_db initialized database')
             # We know we can't do this incrementally, because nothing has
             # existed before...
-            #self._incremental = False
+            self._incremental = False
 
     def _ensure_revisions(self, revision_ids):
         schema.ensure_revisions(self._cursor, revision_ids,



More information about the bazaar-commits mailing list