From 556a793f6d1fc764ba57c27042ccefb189c0225d Mon Sep 17 00:00:00 2001 From: Guido van Rossum <guido@python.org> Date: Fri, 4 Oct 2002 18:54:29 +0000 Subject: [PATCH] When using ZEO 2, connect to the storage in read-only mode. Otherwise, this will just hang trying to connect to a read-only storage. Also get rid of the debug=1 argument (it's not used with ZEO 2). --- src/scripts/zeoup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/zeoup.py b/src/scripts/zeoup.py index bc11c827..efa084eb 100755 --- a/src/scripts/zeoup.py +++ b/src/scripts/zeoup.py @@ -36,7 +36,7 @@ ZEO_VERSION = 2 def check_server(addr, storage, write): if ZEO_VERSION == 2: - cs = ClientStorage(addr, storage=storage, debug=1, wait=1) + cs = ClientStorage(addr, storage=storage, wait=1, read_only=1) else: cs = ClientStorage(addr, storage=storage, debug=1, wait_for_server_on_startup=1) -- 2.30.9