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

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-native.git


The following commit(s) were added to refs/heads/master by this push:
     new bec1c63  NO-JIRA bump release on EXPECTED_NATIVE_VERSION
bec1c63 is described below

commit bec1c63beacd0d0b75cd576ca13d84b7293b29d2
Author: Clebert Suconic <[email protected]>
AuthorDate: Fri Mar 1 10:40:45 2019 -0500

    NO-JIRA bump release on EXPECTED_NATIVE_VERSION
---
 RELEASING.md                                                        | 4 ++++
 .../org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java   | 6 ++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/RELEASING.md b/RELEASING.md
index 96c05bf..b591163 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -11,6 +11,10 @@ You will of course need docker installed and running for 
this:
 MyComputer activemq-artemis-native myuser$ ./scripts/compile-using-docker.sh
 ```
 
+* Increase LibaioContext.EXPECTED_NATIVE_VERSION
+
+This is to make sure when the system loads a native, it is the same .so 
generated at the release time, avoiding production issues on mismatched .so.
+
 * Build the release locally: mvn clean install -Prelease
 
 ## Key to Sign the Release
diff --git 
a/src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java 
b/src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java
index bf862aa..945b2de 100644
--- 
a/src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java
+++ 
b/src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java
@@ -45,11 +45,9 @@ public class LibaioContext<Callback extends SubmitInfo> 
implements Closeable {
    private static final AtomicLong totalMaxIO = new AtomicLong(0);
 
    /**
-    * This definition needs to match Version.h on the native sources.
-    * <br>
-    * Or else the native module won't be loaded because of version mismatches
+    * The Native layer will look at this version.
     */
-   private static final int EXPECTED_NATIVE_VERSION = 8;
+   private static final int EXPECTED_NATIVE_VERSION = 9;
 
    private static boolean loaded = false;
 

Reply via email to