[Checkins] SVN: relstorage/trunk/relstorage/blobhelper.py Added note about copied code.
Shane Hathaway
shane at hathawaymix.org
Thu Oct 21 23:53:56 EDT 2010
Log message for revision 117812:
Added note about copied code.
Changed:
U relstorage/trunk/relstorage/blobhelper.py
-=-
Modified: relstorage/trunk/relstorage/blobhelper.py
===================================================================
--- relstorage/trunk/relstorage/blobhelper.py 2010-10-22 03:47:40 UTC (rev 117811)
+++ relstorage/trunk/relstorage/blobhelper.py 2010-10-22 03:53:55 UTC (rev 117812)
@@ -385,6 +385,17 @@
self._check_blob_size_thread = check_blob_size_thread
+# Note: the following code is copied directly from ZEO. It is copied
+# for 2 reasons:
+#
+# 1. Most of the symbols are not public (the function names start
+# with an underscore), indicating their signature could change
+# at any time.
+#
+# 2. No such code exists in ZODB 3.8, when blob support was first added
+# to ZODB.
+
+
class BlobCacheLayout(object):
size = 997
@@ -508,12 +519,6 @@
finally:
check_lock.close()
-def check_blob_size_script(args=None):
- if args is None:
- args = sys.argv[1:]
- blob_dir, target = args
- _check_blob_cache_size(blob_dir, int(target))
-
def _lock_blob(path):
lockfilename = os.path.join(os.path.dirname(path), '.lock')
n = 0
More information about the checkins
mailing list