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 4138D189A5 for ; Wed, 3 Jun 2015 17:51:58 +0000 (UTC) Received: (qmail 94469 invoked by uid 500); 3 Jun 2015 17:51:58 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 94421 invoked by uid 500); 3 Jun 2015 17:51:58 -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 94411 invoked by uid 99); 3 Jun 2015 17:51:57 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2015 17:51:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 36396C0729 for ; Wed, 3 Jun 2015 17:51:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=visualsvn.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id WNAABIgGWL2O for ; Wed, 3 Jun 2015 17:51:51 +0000 (UTC) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id C64BA275E7 for ; Wed, 3 Jun 2015 17:51:50 +0000 (UTC) Received: by wifw1 with SMTP id w1so31343671wif.0 for ; Wed, 03 Jun 2015 10:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=visualsvn.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=umD4hAwt9V0+nIbkW1CJ8bwFqSJ4KznYAsdU7i5SWHc=; b=ShUCetgH2ktHyZivOyzt9p0x1W+Kek8NDy9P8V6i14BDRumjsNsDnhb1AffL5oJvmK x1sBY2tqg/3QucfkplqAvdF0tokvGueO12fEKce7FTv601oTDRCd/or5CDZCpL+bDUgB XLYPzubRHMl0as6PpxzQ/r3Cw8eKYqMvZzTvU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=umD4hAwt9V0+nIbkW1CJ8bwFqSJ4KznYAsdU7i5SWHc=; b=aqXEdGxVGAs+3BX0+OntPBajGwuhFaDk9V2CMjdj7i18EnWbfipRU1AU+JUKiJoEEP 1bA7N2VNIYe9Bxvd/ggrAaSRepY/NcJ7hGX1LeT+HyeVsi6P3KKMM9wAIswKm9lUBOJ7 +YW7SYg8EjM8TcT2866tkwTLexKXwkI4khrZYORJGHOwtb98gLfLUr7ccuPtTre7DSQL Kqv0Ili1R7pVvxe5JWRoOUv8gxsQjO4Fa/1JAfbGmtBNaHP1xVaMfHizEFrzZtxD2sYi lIRYYu4+ioaf2+eqJN51y17XlyfmdeHCsutj0y4FX/nINA8DoK/z9HDE9xoW4Lph0Jgo 0ABA== X-Gm-Message-State: ALoCoQkCPyX6+MQhNZdVg8RrtHpn20IkogLCex51JrHlX33D+rs55KjrsMw9BvJLhpsoqgEPObaK X-Received: by 10.180.100.194 with SMTP id fa2mr43682394wib.8.1433353864440; Wed, 03 Jun 2015 10:51:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.185.143 with HTTP; Wed, 3 Jun 2015 10:50:43 -0700 (PDT) In-Reply-To: <556F3CF8.3030001@wandisco.com> References: <556EF413.6060303@wandisco.com> <556F0D04.3020006@wandisco.com> <556F397F.7070709@wandisco.com> <556F3CF8.3030001@wandisco.com> From: Ivan Zhakov Date: Wed, 3 Jun 2015 20:50:43 +0300 Message-ID: Subject: Re: Possible incompatibility of svn_repos_verify_fs2() in 1.9.0-rc1 To: =?UTF-8?Q?Branko_=C4=8Cibej?= Cc: dev@subversion.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 3 June 2015 at 20:44, Branko =C4=8Cibej wrote: > On 03.06.2015 19:38, Ivan Zhakov wrote: >> On 3 June 2015 at 20:29, Branko =C4=8Cibej wrote: >> >>> An API user who wants an early exit can always trigger the cancel_func >>> in her notification handler and get SVN_ERR_CANCELLED in response. >>> >> The problem that it's could be hard to distinguish summary errors from >> repository corruption errors itself for API user. > > Why? The summary error code (SVN_ERR_REPOS_VERIFY_FAILED) is used in > only at the end of a run with keep_going=3DTRUE iff the FS backend > returned an error. It cannot be returned from the FS backend validation > functions, so it will never appear in a notification and will never be > returned when keep_going=3DFALSE. In fact, that's the main reason I > decided to keep a separate, new error code for this case. > Is it documented that only SVN_ERR_REPOS_VERIFY_FAILED used for summary errors? Do we promise to always return this error code? Anyway I didn't say that it's impossible to distinguish them, but could be complicated and may be we should make it API user responsibility to construct summary error if needed. --=20 Ivan Zhakov