You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2020/11/12 23:00:06 UTC

[couchdb] branch fix-ebtree-range-clears updated (3828f92 -> e11ab46)

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a change to branch fix-ebtree-range-clears
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


 discard 3828f92  Avoid deleting UUID keys that start with zeros
     new e11ab46  Avoid deleting UUID keys that start with zeros

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (3828f92)
            \
             N -- N -- N   refs/heads/fix-ebtree-range-clears (e11ab46)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:


[couchdb] 01/01: Avoid deleting UUID keys that start with zeros

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch fix-ebtree-range-clears
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit e11ab46a16a2fd9ecef3bc813e2d73a4ff84888d
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Thu Nov 12 16:57:44 2020 -0600

    Avoid deleting UUID keys that start with zeros
    
    Any ebtree that uses chunked key encoding will accidentally wipe out any
    nodes that have a UUID with more than one leading zero byte.
---
 src/ebtree/src/ebtree.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ebtree/src/ebtree.erl b/src/ebtree/src/ebtree.erl
index 31e1fc8..8bfb2ea 100644
--- a/src/ebtree/src/ebtree.erl
+++ b/src/ebtree/src/ebtree.erl
@@ -56,7 +56,7 @@
 -define(META_ORDER, 0).
 
 -define(NODE, 1).
--define(NODE_ROOT_ID, <<0>>).
+-define(NODE_ROOT_ID, <<0:128>>).
 
 -define(underflow(Tree, Node), Tree#tree.min > length(Node#node.members)).
 -define(at_min(Tree, Node), Tree#tree.min == length(Node#node.members)).