Rev 3799: Divert writes into the CHK page cache as well. in http://people.ubuntu.com/~robertc/baz2.0/repository
Robert Collins
robertc at robertcollins.net
Thu Dec 4 21:54:42 GMT 2008
At http://people.ubuntu.com/~robertc/baz2.0/repository
------------------------------------------------------------
revno: 3799
revision-id: robertc at robertcollins.net-20081204215434-9q6qxe3343irq9xu
parent: robertc at robertcollins.net-20081204215124-nhlwju6pj8dnmkwb
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository
timestamp: Fri 2008-12-05 08:54:34 +1100
message:
Divert writes into the CHK page cache as well.
modified:
bzrlib/chk_map.py chk_map.py-20081001014447-ue6kkuhofvdecvxa-1
=== modified file 'bzrlib/chk_map.py'
--- a/bzrlib/chk_map.py 2008-12-04 21:51:24 +0000
+++ b/bzrlib/chk_map.py 2008-12-04 21:54:34 +0000
@@ -565,6 +565,7 @@
lines.append("%s\x00%s\n" % ('\x00'.join(key), value))
sha1, _, _ = store.add_lines((None,), (), lines)
self._key = ("sha1:" + sha1,)
+ _page_cache.add(self._key, ''.join(lines))
return [self._key]
def _serialised_key(self, key):
@@ -839,6 +840,7 @@
lines.append("%s\x00%s\n" % (prefix, key))
sha1, _, _ = store.add_lines((None,), (), lines)
self._key = ("sha1:" + sha1,)
+ _page_cache.add(self._key, ''.join(lines))
yield self._key
def _serialised_key(self, key):
More information about the bazaar-commits
mailing list