[Zodb-checkins] CVS: ZODB3/ZEO - ClientStorage.py:1.110.2.8
cache.py:1.1.2.11 stats.py:1.21.20.5
Tim Peters
cvs-admin at zope.org
Mon Dec 1 10:16:39 EST 2003
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv31977/ZEO
Modified Files:
Tag: ZODB3-mvcc-2-branch
ClientStorage.py cache.py stats.py
Log Message:
Whitespace normalization.
=== ZODB3/ZEO/ClientStorage.py 1.110.2.7 => 1.110.2.8 ===
--- ZODB3/ZEO/ClientStorage.py:1.110.2.7 Sat Nov 22 00:06:39 2003
+++ ZODB3/ZEO/ClientStorage.py Mon Dec 1 10:16:08 2003
@@ -786,7 +786,7 @@
# the load lock in the case. That's slow performance, but
# I don't think real application code will ever care about
# it.
-
+
return data, serial, start, end
self._lock.acquire()
try:
=== ZODB3/ZEO/cache.py 1.1.2.10 => 1.1.2.11 ===
--- ZODB3/ZEO/cache.py:1.1.2.10 Sat Nov 22 00:11:19 2003
+++ ZODB3/ZEO/cache.py Mon Dec 1 10:16:08 2003
@@ -80,7 +80,7 @@
self._setup_trace()
else:
self._trace = self._notrace
-
+
# Last transaction seen by the cache, either via setLastTid()
# or by invalidate().
self.tid = None
@@ -95,7 +95,7 @@
# The serialized form of the cache just stores the Object()
# records. The in-memory form can be reconstructed from these
# records.
-
+
# Maps oid to current tid. Used to find compute key for objects.
self.current = {}
# Maps oid to list of (start_tid, end_tid) pairs in sorted order.
@@ -318,7 +318,7 @@
# data gets confused with the old tid of the non-version data.
# I could sort this out, but it seems simpler to punt and
# have the cache invalidation too much for versions.
-
+
if oid not in self.current:
self._trace(0x10, oid, version, tid)
return
@@ -558,7 +558,7 @@
# data
# 8-byte oid
# struct format is >QQQQhi
-
+
##
# XXX
@@ -692,7 +692,7 @@
self._n_removes += 1
self._n_removed_bytes += obj.msize
self._removeobj(obj)
-
+
# Evict objects of least worth first, until at least nbytes bytes
# have been freed.
def _evictbytes(self, nbytes):
@@ -705,10 +705,9 @@
self._n_evicts += 1
self._n_evicted_bytes += obj.msize
self._removeobj(obj)
-
+
def _removeobj(self, obj):
self.currentsize -= obj.msize
self.worthsets[obj.worth].discard(obj)
del self.key2object[obj.key]
self._unlink(obj)
-
=== ZODB3/ZEO/stats.py 1.21.20.4 => 1.21.20.5 ===
--- ZODB3/ZEO/stats.py:1.21.20.4 Wed Nov 19 15:32:50 2003
+++ ZODB3/ZEO/stats.py Mon Dec 1 10:16:08 2003
@@ -384,7 +384,7 @@
0x50: "store (version)",
0x52: "store (current, non-version)",
0x54: "store (non-current)",
-
+
}
if __name__ == "__main__":
More information about the Zodb-checkins
mailing list