- Revision
- 15296
- Author
- vajda
- Date
- 2007-09-05 10:03:03 -0700 (Wed, 05 Sep 2007)
Log Message
- fixed bug 10779 (r=grant)
(http://bugzilla.osafoundation.org/show_bug.cgi?id=10779)
(index error in Mitch8&Freada ISC)
(http://bugzilla.osafoundation.org/show_bug.cgi?id=10779)
(index error in Mitch8&Freada ISC)
Modified Paths
Diff
Modified: trunk/chandler/repository/persistence/DBRepositoryView.py (15295 => 15296)
--- trunk/chandler/repository/persistence/DBRepositoryView.py 2007-08-31 02:28:12 UTC (rev 15295) +++ trunk/chandler/repository/persistence/DBRepositoryView.py 2007-09-05 17:03:03 UTC (rev 15296) @@ -570,7 +570,10 @@ timedelta(seconds=duration)) # synchronize new indexes with changes - x, x, newIndexes = self.store.getViewData(newVersion) + newIndexes = [] + for version in xrange(oldVersion + 1, newVersion + 1): + x, x, _newIndexes = self.store.getViewData(version) + newIndexes.extend(_newIndexes) if newIndexes: items = set(self._log) for item in self._log:
Modified: trunk/chandler/repository/persistence/RepositoryView.py (15295 => 15296)
--- trunk/chandler/repository/persistence/RepositoryView.py 2007-08-31 02:28:12 UTC (rev 15295) +++ trunk/chandler/repository/persistence/RepositoryView.py 2007-09-05 17:03:03 UTC (rev 15296) @@ -1467,7 +1467,13 @@ if not index.isValid(): index.validateIndex(True, True) + for indexed, indexes in map.iteritems(): + for index in indexes: + if index._changedKeys: + indexed._setDirty(True) + break + itsUUID = UUID('3631147e-e58d-11d7-d3c2-000393db837c') SUBSCRIBERS = UUID('4dc81eae-1689-11db-a0ac-0016cbc90838')
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
