Upgrade the jna version to 4.3.0

patch by jasobrown, reviewed by mkjellman for CASSANDRA-13300
This commit is contained in:
Jason Brown 2017-03-06 05:04:48 -08:00
parent 01f8e770d9
commit 28b838ed66
5 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
4.0
* Upgrade the jna version to 4.3.0 (CASSANDRA-13300)
* Add the currentTimestamp, currentDate, currentTime and currentTimeUUID functions (CASSANDRA-13132)
* Remove config option index_interval (CASSANDRA-10671)
* Reduce lock contention for collection types and serializers (CASSANDRA-13271)

Binary file not shown.

BIN
lib/jna-4.3.0.jar Normal file

Binary file not shown.

View File

@ -126,11 +126,15 @@ public final class CLibrary
private static OSType getOsType()
{
String osName = System.getProperty("os.name").toLowerCase();
if (osName.contains("mac"))
if (osName.contains("linux"))
return LINUX;
else if (osName.contains("mac"))
return MAC;
else if (osName.contains("windows"))
return WINDOWS;
else if (osName.contains("aix"))
logger.warn("the current operating system, {}, is unsupported by cassandra", osName);
if (osName.contains("aix"))
return AIX;
else
// fall back to the Linux impl for all unknown OS types until otherwise implicitly supported as needed