From a81867990674f9a288474110e003ed5610f9199e Mon Sep 17 00:00:00 2001 From: Kent Slaney Date: Mon, 29 Jul 2024 01:33:04 -0700 Subject: [PATCH] Better naming for UNIX socket function (#126) --- CMakeLists.txt | 2 +- include/Common.h | 2 +- libmc/__init__.py | 4 ++-- src/Common.cpp | 4 ++-- src/Connection.cpp | 2 +- src/version.go | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c27ecce0..e9cb9351 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ set(CMAKE_MACOSX_RPATH 1) set (MC_VERSION_MAJOR 1) set (MC_VERSION_MINOR 4) -set (MC_VERSION_PATCH 4) +set (MC_VERSION_PATCH 5) set (MC_VERSION ${MC_VERSION_MAJOR}.${MC_VERSION_MINOR}) set (MC_APIVERSION ${MC_VERSION}.${MC_VERSION_PATCH}) diff --git a/include/Common.h b/include/Common.h index f7a22de8..9295465a 100644 --- a/include/Common.h +++ b/include/Common.h @@ -226,7 +226,7 @@ typedef enum { } op_code_t; const char* errCodeToString(err_code_t err); -bool isLocalSocket(const char* host); +bool isUnixSocket(const char* host); server_string_split_t splitServerString(char* input); } // namespace mc diff --git a/libmc/__init__.py b/libmc/__init__.py index b0f05eaa..d1f4d1db 100644 --- a/libmc/__init__.py +++ b/libmc/__init__.py @@ -34,10 +34,10 @@ ) __VERSION__ = "1.4.4" -__version__ = "v1.4.4" +__version__ = "1.4.5" __author__ = "mckelvin" __email__ = "mckelvin@users.noreply.github.com" -__date__ = "Sat Jun 1 05:10:05 2024 +0800" +__date__ = "Fri Jun 7 06:16:00 2024 +0800" class Client(PyClient): diff --git a/src/Common.cpp b/src/Common.cpp index 2e75ffca..148bdd92 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -50,9 +50,9 @@ const char* errCodeToString(err_code_t err) { } } -bool isLocalSocket(const char* host) { +bool isUnixSocket(const char* host) { // errors on the side of false negatives, allowing syntax expansion; - // starting slash to denote socket paths is from pylibmc + // starting slash syntax is from libmemcached return host[0] == '/'; } diff --git a/src/Connection.cpp b/src/Connection.cpp index 0b95c8b3..b44c4963 100644 --- a/src/Connection.cpp +++ b/src/Connection.cpp @@ -47,7 +47,7 @@ Connection::~Connection() { int Connection::init(const char* host, uint32_t port, const char* alias) { snprintf(m_host, sizeof m_host, "%s", host); m_port = port; - m_unixSocket = isLocalSocket(m_host); + m_unixSocket = isUnixSocket(m_host); if (alias == NULL) { m_hasAlias = false; if (m_unixSocket) { diff --git a/src/version.go b/src/version.go index 978dc32d..f4710295 100644 --- a/src/version.go +++ b/src/version.go @@ -1,9 +1,9 @@ package golibmc -const _Version = "v1.4.4" +const _Version = "1.4.5" const _Author = "mckelvin" const _Email = "mckelvin@users.noreply.github.com" -const _Date = "Sat Jun 1 05:10:05 2024 +0800" +const _Date = "Fri Jun 7 06:16:00 2024 +0800" // Version of the package const Version = _Version