Commit 132705f6 authored by Kirill Smelkov's avatar Kirill Smelkov

Merge branch 't' into t2

* t:
  X lib/zodb: zstor_2zurl: Explicitly reject MappingStorage
parents c75b1c6f 206969bb
...@@ -371,4 +371,11 @@ def zstor_2zurl(zstor): ...@@ -371,4 +371,11 @@ def zstor_2zurl(zstor):
return u return u
# MappingStorage:
if ztype == "ZODB.MappingStorage.MappingStorage":
raise ValueError("%s is in-RAM storage\n" +
"\tin-RAM storages are not supported:\n" +
"\ta zurl pointing to in-RAM storage in one process would lead to\n"
"\tanother in-RAM storage in WCFS process." % ztype)
raise NotImplementedError("don't know how to extract zurl from %r" % zstor) raise NotImplementedError("don't know how to extract zurl from %r" % zstor)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment