Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E9DB7738F for ; Sun, 16 Oct 2011 20:00:13 +0000 (UTC) Received: (qmail 65682 invoked by uid 500); 16 Oct 2011 20:00:13 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 65647 invoked by uid 500); 16 Oct 2011 20:00:13 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 65640 invoked by uid 99); 16 Oct 2011 20:00:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Oct 2011 20:00:13 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.8.89.33] (HELO claranet-outbound-smtp00.uk.clara.net) (195.8.89.33) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Oct 2011 20:00:07 +0000 Received: from cpc1-rdng20-2-0-cust389.15-3.cable.virginmedia.com ([86.28.169.134]:50731 helo=body.chelsea.private) by relay00.mail.eu.clara.net (relay.clara.net [213.253.3.40]:1025) with esmtpa (authdaemon_plain:barry@barrys-emacs.org) id 1RFWs1-0000A3-0z (return-path ); Sun, 16 Oct 2011 19:59:41 +0000 Subject: Re: Problem with checkout for 1.7.0-rc4 Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Barry Scott In-Reply-To: <87aa97j46m.fsf@stat.home.lan> Date: Sun, 16 Oct 2011 20:59:40 +0100 Cc: Toby Peterson , Bert Huijben , 'Mark Phippard' , 'Subversion Development' Content-Transfer-Encoding: quoted-printable Message-Id: References: <87aa98v3ik.fsf@stat.home.lan> <8762jwv25u.fsf@stat.home.lan> <008101cc87aa$2d72cc70$88586550$@qqmail.nl> <68D71CE2-D4E2-451D-A408-5409CF3B6FFA@apple.com> <87lisshqxb.fsf@stat.home.lan> <87aa97j46m.fsf@stat.home.lan> To: Philip Martin X-Mailer: Apple Mail (2.1251.1) On 11 Oct 2011, at 09:57, Philip Martin wrote: > Philip Martin writes: >=20 >> sqlite-3.6.18, our minimum version, has SQLITE_OPEN_SHAREDCACHE. I >> suppose we could start using that instead of = sqlite3_enable_shared_cache. >=20 > Barry, would you try this patch to confirm it works on OS X 10.7: Yes this patch works. Applies 133 lines offset against 1.7.0 tarball = source. With this in place my regressions test are passing for pysvn. Thanks for your help. Barry >=20 > Index: subversion/libsvn_subr/sqlite.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- subversion/libsvn_subr/sqlite.c (revision 1181650) > +++ subversion/libsvn_subr/sqlite.c (working copy) > @@ -637,12 +637,6 @@ >=20 > #endif /* APR_HAS_THRADS */ >=20 > - /* SQLite 3.5 allows sharing cache instances, even in a = multithreaded > - environment. This allows sharing cached data when we open a = database > - more than once (Very common in the current pre-single-database = state) */ > - SQLITE_ERR_MSG(sqlite3_enable_shared_cache(TRUE), > - _("Could not initialize SQLite shared cache")); > - > return SVN_NO_ERROR; > } >=20 > @@ -673,6 +667,11 @@ > flags |=3D SQLITE_OPEN_NOMUTEX; > #endif >=20 > + /* SQLite 3.5 allows sharing cache instances, even in a = multithreaded > + environment. This allows sharing cached data when we open a = database > + more than once (Very common in the current pre-single-database = state) */ > + flags |=3D SQLITE_OPEN_SHAREDCACHE; > + > /* Open the database. Note that a handle is returned, even when an = error > occurs (except for out-of-memory); thus, we can safely use it = to > extract an error message and construct an svn_error_t. */ >=20 > --=20 > uberSVN: Apache Subversion Made Easy > http://www.uberSVN.com >=20