Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REL-2511 C client 6.6.3 #153

Merged
merged 5 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/utils/src/main/example_utils.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2008-2023 by Aerospike.
* Copyright 2008-2024 by Aerospike.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
Expand Down Expand Up @@ -476,7 +476,7 @@ example_log_callback(as_log_level level, const char * func, const char * file, u
// Initialize asynchronous event loop
//
bool
example_create_event_loop()
example_create_event_loop(void)
{
#if AS_EVENT_LIB_DEFINED
// Initialize logging.
Expand Down
Binary file modified src/apidocs/html/aerospike_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/include/aerospike/as_event.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-2022 Aerospike, Inc.
* Copyright 2008-2024 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
Expand Down Expand Up @@ -377,7 +377,7 @@ as_event_loop_get_by_index(uint32_t index)
* @ingroup async_events
*/
static inline as_event_loop*
as_event_loop_get()
as_event_loop_get(void)
{
// The last event loop points to the first event loop to create a circular linked list.
// Not atomic because doesn't need to be exactly accurate.
Expand Down
10 changes: 5 additions & 5 deletions src/include/aerospike/as_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,24 +334,24 @@ typedef enum as_policy_read_mode_sc_e {

/**
* Ensures this client will only see an increasing sequence of record versions.
* Server only reads from master. This is the default.
* Client only reads from master. This is the default.
*/
AS_POLICY_READ_MODE_SC_SESSION,

/**
* Ensures ALL clients will only see an increasing sequence of record versions.
* Server only reads from master.
* Ensures all clients will only see an increasing sequence of record versions.
* Client only reads from master.
*/
AS_POLICY_READ_MODE_SC_LINEARIZE,

/**
* Server may read from master or any full (non-migrating) replica.
* Client may read from master or any full (non-migrating) replica.
* Increasing sequence of record versions is not guaranteed.
*/
AS_POLICY_READ_MODE_SC_ALLOW_REPLICA,

/**
* Server may read from master or any full (non-migrating) replica or from unavailable
* Client may read from master or any full (non-migrating) replica or from unavailable
* partitions. Increasing sequence of record versions is not guaranteed.
*/
AS_POLICY_READ_MODE_SC_ALLOW_UNAVAILABLE,
Expand Down
2 changes: 1 addition & 1 deletion src/include/aerospike/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
// N: minor
// P: patch
// B: build id
#define AEROSPIKE_CLIENT_VERSION 606020000L
#define AEROSPIKE_CLIENT_VERSION 606030000L

extern char* aerospike_client_version;
2 changes: 1 addition & 1 deletion src/main/aerospike/aerospike_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ as_query_command_init(
write_attr |= AS_MSG_INFO2_RELAX_AP_LONG_QUERY;
}

uint8_t info_attr = qb->is_new ? AS_MSG_INFO3_PARTITION_DONE : 0;
uint8_t info_attr = (qb->is_new || query->where.size == 0)? AS_MSG_INFO3_PARTITION_DONE : 0;

p = as_command_write_header_read(cmd, base_policy, AS_POLICY_READ_MODE_AP_ONE,
AS_POLICY_READ_MODE_SC_SESSION, -1, base_policy->total_timeout, qb->n_fields, qb->n_ops,
Expand Down
5 changes: 1 addition & 4 deletions src/main/aerospike/aerospike_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,9 @@ as_scan_command_init(
read_attr |= AS_MSG_INFO1_GET_NOBINDATA;
}

// Clusters that support partition queries also support not sending partition done messages.
int info_attr = cluster->has_partition_query? AS_MSG_INFO3_PARTITION_DONE : 0;

p = as_command_write_header_read(cmd, &policy->base, AS_POLICY_READ_MODE_AP_ONE,
AS_POLICY_READ_MODE_SC_SESSION, -1, policy->base.total_timeout, sb->n_fields, n_ops,
read_attr, 0, info_attr);
read_attr, 0, AS_MSG_INFO3_PARTITION_DONE);
}

if (scan->ns[0]) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/aerospike/as_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void
as_cluster_set_max_socket_idle(as_cluster* cluster, uint32_t max_socket_idle_sec);

uint32_t
as_async_get_cluster_count()
as_async_get_cluster_count(void)
{
return as_load_uint32(&as_cluster_count);
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/aerospike/as_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ as_event_loop_find(void* loop)
}

bool
as_event_close_loops()
as_event_close_loops(void)
{
if (! as_event_loops) {
return false;
Expand Down Expand Up @@ -341,7 +341,7 @@ as_event_close_loops()
}

void
as_event_destroy_loops()
as_event_destroy_loops(void)
{
#if defined(_MSC_VER)
// Call WSACleanup() on event loops destroy on windows.
Expand Down Expand Up @@ -1751,7 +1751,7 @@ create_connections_nowait(as_node* node, as_async_conn_pool* pools)
}

static bool
as_in_event_loops()
as_in_event_loops(void)
{
// Determine if current thread is an event loop thread.
bool in_event_loop = false;
Expand Down
4 changes: 2 additions & 2 deletions src/main/aerospike/as_metrics_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ as_metrics_process_cpu_load_mem_usage(as_error* err, as_metrics_writer* mw, uint
#include<sys/syscall.h>

static double
as_metrics_process_mem_usage()
as_metrics_process_mem_usage(void)
{
struct task_basic_info t_info;
mach_msg_type_number_t t_info_count = TASK_BASIC_INFO_COUNT;
Expand All @@ -145,7 +145,7 @@ as_metrics_process_mem_usage()
}

static double
as_metrics_process_cpu_load()
as_metrics_process_cpu_load(void)
{
pid_t pid = getpid();

Expand Down
4 changes: 2 additions & 2 deletions src/main/aerospike/as_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ get_buffer_size(const char* proc, int size)
#endif

int
as_pipe_get_send_buffer_size()
as_pipe_get_send_buffer_size(void)
{
#if defined(__linux__)
return get_buffer_size("/proc/sys/net/core/wmem_max", PIPE_WRITE_BUFFER_SIZE);
Expand All @@ -297,7 +297,7 @@ as_pipe_get_send_buffer_size()
}

int
as_pipe_get_recv_buffer_size()
as_pipe_get_recv_buffer_size(void)
{
#if defined(__linux__)
return get_buffer_size("/proc/sys/net/core/rmem_max", PIPE_READ_BUFFER_SIZE);
Expand Down
4 changes: 2 additions & 2 deletions src/main/aerospike/as_shm_cluster.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-2023 Aerospike, Inc.
* Copyright 2008-2024 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
Expand Down Expand Up @@ -110,7 +110,7 @@ as_shm_dump_partition_tables(as_cluster_shm* cluster_shm)

#if !defined(_MSC_VER)
static size_t
as_shm_get_max_size()
as_shm_get_max_size(void)
{
#ifdef __linux__
char* fn = "/proc/sys/kernel/shmmax";
Expand Down
10 changes: 5 additions & 5 deletions src/main/aerospike/as_socket.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-2019 Aerospike, Inc.
* Copyright 2008-2024 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
Expand Down Expand Up @@ -326,7 +326,7 @@ as_socket_write_deadline(
size_t pos = 0;
as_status status = AEROSPIKE_OK;
uint32_t timeout;
int try = 0;
//int try = 0;

do {
if (deadline > 0) {
Expand Down Expand Up @@ -392,7 +392,7 @@ as_socket_write_deadline(
}
}

try++;
//try++;

} while (pos < buf_len);

Expand Down Expand Up @@ -429,7 +429,7 @@ as_socket_read_deadline(
size_t pos = 0;
as_status status = AEROSPIKE_OK;
uint32_t timeout;
int try = 0;
//int try = 0;

do {
if (deadline > 0) {
Expand Down Expand Up @@ -493,7 +493,7 @@ as_socket_read_deadline(
}
}

try++;
//try++;

} while (pos < buf_len);

Expand Down
8 changes: 4 additions & 4 deletions src/main/aerospike/as_tls.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-2023 Aerospike, Inc.
* Copyright 2008-2024 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
Expand Down Expand Up @@ -233,7 +233,7 @@ threading_cleanup(void)
#endif

void
as_tls_check_init()
as_tls_check_init(void)
{
// Bail if we've already initialized.
if (s_tls_inited) {
Expand Down Expand Up @@ -306,7 +306,7 @@ as_tls_cleanup(void)
}

void
as_tls_thread_cleanup()
as_tls_thread_cleanup(void)
{
// Skip if we were never initialized.
if (! s_tls_inited) {
Expand Down Expand Up @@ -1491,7 +1491,7 @@ static void cert_blacklist_destroy(void* cbl)
cf_free(cbp);
}

static void manage_sigpipe()
static void manage_sigpipe(void)
{
#if !defined(_MSC_VER)
// OpenSSL can encounter a SIGPIPE in the SSL_shutdown sequence.
Expand Down
4 changes: 2 additions & 2 deletions src/main/aerospike/as_udf.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-2018 Aerospike, Inc.
* Copyright 2008-2024 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
Expand Down Expand Up @@ -120,7 +120,7 @@ as_udf_file_init(as_udf_file * file)
}

as_udf_file*
as_udf_file_new()
as_udf_file_new(void)
{
as_udf_file * file = (as_udf_file *) cf_malloc(sizeof(as_udf_file));
if ( !file ) return file;
Expand Down
2 changes: 1 addition & 1 deletion src/main/aerospike/version.c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
char* aerospike_client_version = "6.6.2";
char* aerospike_client_version = "6.6.3";
2 changes: 1 addition & 1 deletion vs/aerospike-client-c-libevent.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>aerospike-client-c-libevent</id>
<version>6.6.2</version>
<version>6.6.3</version>
<title>Aerospike C Client with libevent</title>
<authors>Aerospike</authors>
<owners>Aerospike</owners>
Expand Down
2 changes: 1 addition & 1 deletion vs/aerospike-client-c-libuv.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>aerospike-client-c-libuv</id>
<version>6.6.2</version>
<version>6.6.3</version>
<title>Aerospike C Client with libuv</title>
<authors>Aerospike</authors>
<owners>Aerospike</owners>
Expand Down
2 changes: 1 addition & 1 deletion vs/aerospike-client-c.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>aerospike-client-c</id>
<version>6.6.2</version>
<version>6.6.3</version>
<title>Aerospike C Client</title>
<authors>Aerospike</authors>
<owners>Aerospike</owners>
Expand Down
Loading