From couchdb-user-return-1453-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Sat Oct 04 14:48:18 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 4162 invoked from network); 4 Oct 2008 14:48:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Oct 2008 14:48:18 -0000 Received: (qmail 69676 invoked by uid 500); 4 Oct 2008 14:48:16 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 69646 invoked by uid 500); 4 Oct 2008 14:48:16 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 69635 invoked by uid 99); 4 Oct 2008 14:48:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Oct 2008 07:48:16 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 209.85.200.169 is neither permitted nor denied by domain of ayende@ayende.com) Received: from [209.85.200.169] (HELO wf-out-1314.google.com) (209.85.200.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Oct 2008 14:47:11 +0000 Received: by wf-out-1314.google.com with SMTP id 27so2278856wfd.21 for ; Sat, 04 Oct 2008 07:47:46 -0700 (PDT) Received: by 10.142.222.4 with SMTP id u4mr885140wfg.250.1223131664826; Sat, 04 Oct 2008 07:47:44 -0700 (PDT) Received: by 10.142.163.18 with HTTP; Sat, 4 Oct 2008 07:47:44 -0700 (PDT) Message-ID: <27d8d0930810040747v6e60195duccee2422f32c4fbd@mail.gmail.com> Date: Sat, 4 Oct 2008 17:47:44 +0300 From: "Ayende Rahien" To: couchdb-user@incubator.apache.org Subject: Re: couch_util:new_uuid problem? In-Reply-To: <43178836-940B-4DDA-AFCC-EE9F25ADA34A@apache.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16605_12794932.1223131664813" References: <27d8d0930810031649h3fa3d5deyd16f373527aae472@mail.gmail.com> <27d8d0930810031753hcf4df28x29dad0c49b163564@mail.gmail.com> <3D815525-3CF2-467C-B1DA-0F3F067E59D9@apache.org> <27d8d0930810040113m47c2fe68pf6ac319b1d40c485@mail.gmail.com> <43178836-940B-4DDA-AFCC-EE9F25ADA34A@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_16605_12794932.1223131664813 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline So those are internal and not for external use, right? On Sat, Oct 4, 2008 at 5:08 PM, Jan Lehnardt wrote: > > On Oct 4, 2008, at 10:13 , Ayende Rahien wrote: > > What is the use case for them? >> > > Keeping track of stuff between replications afaik. > > > Cheers > Jan > -- > > >> >> On Sat, Oct 4, 2008 at 11:10 AM, Jan Lehnardt wrote: >> >> >>> On Oct 4, 2008, at 2:53 , Ayende Rahien wrote: >>> >>> >>>> B) What is the meaning of "_local" documents? I couldn't find anything >>>> about >>>> it. >>>> >>>> >>> A special kind of documents for internal use that do not get replicated. >>> They are sorta private. >>> >>> Cheers >>> Jan >>> -- >>> >>> >>> >>>> On Sat, Oct 4, 2008 at 2:49 AM, Ayende Rahien >>>> wrote: >>>> >>>> Looking at the method implementation, it looks like there might be a >>>> >>>>> problem here. >>>>> >>>>> new_uuid() -> >>>>> list_to_binary(to_hex(crypto:rand_bytes(16))). >>>>> >>>>> In particular, we aren't actually guaranteed to have a unique value. >>>>> You can read more about what needs to be done to get unique guids: >>>>> here: >>>>> http://blogs.msdn.com/oldnewthing/archive/2008/06/27/8659071.aspx >>>>> >>>>> >>>>> >>>>> >>> > ------=_Part_16605_12794932.1223131664813--