You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2019/10/30 14:05:46 UTC

[couchdb] branch use-metadata-key-from-610 created (now a121cee)

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

vatamane pushed a change to branch use-metadata-key-from-610
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at a121cee  Use "\xFF/metadataVersion" key for checking metadata

This branch includes the following new commits:

     new a121cee  Use "\xFF/metadataVersion" key for checking metadata

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.



[couchdb] 01/01: Use "\xFF/metadataVersion" key for checking metadata

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

vatamane pushed a commit to branch use-metadata-key-from-610
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a121ceebf5b82a1feb273a10bc7cd8307a113d1a
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Wed Oct 30 09:53:12 2019 -0400

    Use "\xFF/metadataVersion" key for checking metadata
    
    Need to use an erlfdb version that has this commit
    https://github.com/cloudant-labs/couchdb-erlfdb/commit/7718a3d7e1994e1384c56d39fae5cad3d8c6c4b3
    and FDB version 6.1+
    
    Since fabric2.hrl is a public include, use that in couch_jobs to avoid
    redifining a bunch of things.
---
 src/couch_jobs/src/couch_jobs.hrl | 5 ++---
 src/fabric/include/fabric2.hrl    | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/couch_jobs/src/couch_jobs.hrl b/src/couch_jobs/src/couch_jobs.hrl
index 2a02d76..055bf09 100644
--- a/src/couch_jobs/src/couch_jobs.hrl
+++ b/src/couch_jobs/src/couch_jobs.hrl
@@ -10,6 +10,8 @@
 % License for the specific language governing permissions and limitations under
 % the License.
 
+-include_lib("fabric/include/fabric2.hrl").
+
 
 % Job map/json field definitions
 %
@@ -20,10 +22,7 @@
 
 % These might be in a fabric public hrl eventually
 %
--define(uint2bin(I), binary:encode_unsigned(I, little)).
--define(bin2uint(I), binary:decode_unsigned(I, little)).
 -define(UNSET_VS, {versionstamp, 16#FFFFFFFFFFFFFFFF, 16#FFFF}).
--define(METADATA_VERSION_KEY, <<"$metadata_version_key$">>).
 
 % Data model definitions
 %
diff --git a/src/fabric/include/fabric2.hrl b/src/fabric/include/fabric2.hrl
index a5c12ae..cd3f89d 100644
--- a/src/fabric/include/fabric2.hrl
+++ b/src/fabric/include/fabric2.hrl
@@ -23,7 +23,7 @@
 % key for tracking metadata changse. Once we get to the
 % new feature this will be more performant by updating
 % this define.
--define(METADATA_VERSION_KEY, <<"$metadata_version_key$">>).
+-define(METADATA_VERSION_KEY, <<16#FF, "/metadataVersion">>).
 
 
 % Prefix Definitions