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 2022/01/25 20:48:18 UTC

[couchdb-erlfdb] branch main updated (74a31ce -> 20ae851)

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

vatamane pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-erlfdb.git.


    from 74a31ce  Avoid reserved keys in tests (#48)
     new a2e6505  Deallocate future mutex in the future resource destructor
     new 20ae851  Update URL for FDB packages

The 2 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:
 .github/workflows/ci.yml | 12 ++++++------
 c_src/resources.c        |  4 ++++
 2 files changed, 10 insertions(+), 6 deletions(-)

[couchdb-erlfdb] 01/02: Deallocate future mutex in the future resource destructor

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

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-erlfdb.git

commit a2e6505b92cff2966a855f5c9240c7111e9c1340
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Tue Jan 25 12:31:45 2022 -0500

    Deallocate future mutex in the future resource destructor
    
    Otherwise we end up leaking mutexes https://github.com/apache/couchdb-erlfdb/issues/49
---
 c_src/resources.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/c_src/resources.c b/c_src/resources.c
index 88f402a..9be74af 100644
--- a/c_src/resources.c
+++ b/c_src/resources.c
@@ -74,6 +74,10 @@ erlfdb_future_dtor(ErlNifEnv* env, void* obj)
     if(f->msg_env != NULL) {
         enif_free_env(f->msg_env);
     }
+
+    if(f->lock != NULL) {
+        enif_mutex_destroy(f->lock);
+    }
 }
 
 

[couchdb-erlfdb] 02/02: Update URL for FDB packages

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

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-erlfdb.git

commit 20ae851ed87157ed127d23f09955bb608ce25a0a
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Tue Jan 25 13:15:03 2022 -0500

    Update URL for FDB packages
---
 .github/workflows/ci.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 239dce7..da00984 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -35,8 +35,8 @@ jobs:
           rebar3-version: '3.17'
       - name: Install FoundationDB
         run: |
-          wget https://www.foundationdb.org/downloads/${FDB_VERSION}/ubuntu/installers/foundationdb-clients_${FDB_VERSION}-1_amd64.deb
-          wget https://www.foundationdb.org/downloads/${FDB_VERSION}/ubuntu/installers/foundationdb-server_${FDB_VERSION}-1_amd64.deb
+          wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_amd64.deb
+          wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-server_${FDB_VERSION}-1_amd64.deb
           sudo dpkg -i foundationdb-clients_${FDB_VERSION}-1_amd64.deb
           sudo dpkg -i foundationdb-server_${FDB_VERSION}-1_amd64.deb
       - name: Compile
@@ -90,21 +90,21 @@ jobs:
       - name: Install FoundationDB (Ubuntu)
         if: ${{ matrix.os == 'ubuntu-latest' }}
         run: |
-          wget https://www.foundationdb.org/downloads/${FDB_VERSION}/ubuntu/installers/foundationdb-clients_${FDB_VERSION}-1_amd64.deb
-          wget https://www.foundationdb.org/downloads/${FDB_VERSION}/ubuntu/installers/foundationdb-server_${FDB_VERSION}-1_amd64.deb
+          wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_amd64.deb
+          wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-server_${FDB_VERSION}-1_amd64.deb
           sudo dpkg -i foundationdb-clients_${FDB_VERSION}-1_amd64.deb
           sudo dpkg -i foundationdb-server_${FDB_VERSION}-1_amd64.deb
       - name: Install FoundationDB (Windows)
         if: ${{ matrix.os == 'windows-latest' }}
         run: |
           Set-PSDebug -Trace 1
-          Invoke-WebRequest -Uri https://www.foundationdb.org/downloads/$env:FDB_VERSION/windows/installers/foundationdb-$env:FDB_VERSION-x64.msi -OutFile foundationdb-$env:FDB_VERSION-x64.msi
+          Invoke-WebRequest -Uri https://github.com/apple/foundationdb/releases/download/$env:FDB_VERSION/foundationdb-$env:FDB_VERSION-x64.msi -OutFile foundationdb-$env:FDB_VERSION-x64.msi
           msiexec /i foundationdb-$env:FDB_VERSION-x64.msi /passive
           echo "c:/Program Files/foundationdb/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
       - name: Install FoundationDB (macOS)
         if: ${{ matrix.os == 'macos-latest' }}
         run: |
-          wget https://www.foundationdb.org/downloads/${FDB_VERSION}/macOS/installers/FoundationDB-${FDB_VERSION}.pkg
+          wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/FoundationDB-${FDB_VERSION}.pkg
           sudo installer -allowUntrusted -verboseR -pkg FoundationDB-${FDB_VERSION}.pkg -target /
       - name: Compile
         run: rebar3 compile