diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c21d1714..2c285a9fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.3) set(VINEYARD_MAJOR_VERSION 0) set(VINEYARD_MINOR_VERSION 22) -set(VINEYARD_PATCH_VERSION 0) +set(VINEYARD_PATCH_VERSION 1) set(VINEYARD_VERSION ${VINEYARD_MAJOR_VERSION}.${VINEYARD_MINOR_VERSION}.${VINEYARD_PATCH_VERSION}) message(STATUS "Configuring and building vineyard version '${VINEYARD_VERSION}'.") diff --git a/charts/vineyard-operator/Chart.yaml b/charts/vineyard-operator/Chart.yaml index fb3e5fa63..00f65049a 100644 --- a/charts/vineyard-operator/Chart.yaml +++ b/charts/vineyard-operator/Chart.yaml @@ -24,10 +24,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.22.0 +version: 0.22.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: 0.22.0 +appVersion: 0.22.1 diff --git a/k8s/cmd/main.go b/k8s/cmd/main.go index 5d4b027c3..8d149d836 100644 --- a/k8s/cmd/main.go +++ b/k8s/cmd/main.go @@ -48,7 +48,7 @@ var cmdLong = util.LongDesc(` var cmd = &cobra.Command{ Use: "vineyardctl [command]", - Version: "v0.22.0", + Version: "v0.22.1", Short: "vineyardctl is the command-line tool for interact with the Vineyard Operator.", Long: cmdLong, } diff --git a/modules/llm-cache/storage/file_storage.cc b/modules/llm-cache/storage/file_storage.cc index 44bd43ad1..85efa3601 100644 --- a/modules/llm-cache/storage/file_storage.cc +++ b/modules/llm-cache/storage/file_storage.cc @@ -663,8 +663,10 @@ void FileStorage::PrintFileAccessTime(std::string path) { std::string FileStorage::GetTimestamp( std::chrono::duration time) { - auto duration_since_epoch = std::chrono::duration_cast(time); - std::chrono::time_point timestamp = std::chrono::system_clock::time_point(duration_since_epoch); + auto duration_since_epoch = + std::chrono::duration_cast(time); + std::chrono::time_point timestamp = + std::chrono::system_clock::time_point(duration_since_epoch); time_t t = std::chrono::system_clock::to_time_t(timestamp); std::tm tm; diff --git a/modules/llm-cache/storage/local_file_storage.cc b/modules/llm-cache/storage/local_file_storage.cc index d054e0998..ddc7e58f6 100644 --- a/modules/llm-cache/storage/local_file_storage.cc +++ b/modules/llm-cache/storage/local_file_storage.cc @@ -192,13 +192,14 @@ Status LocalFileStorage::GetFileAccessTime( return Status::IOError("Failed to get file access time: " + formatIOError(path)); } - #ifdef __APPLE__ - accessTime = std::chrono::duration( - statbuf.st_atimespec.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atimespec.tv_nsec); - #else - accessTime = std::chrono::duration( - statbuf.st_atim.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atim.tv_nsec); - #endif +#ifdef __APPLE__ + accessTime = std::chrono::duration( + statbuf.st_atimespec.tv_sec * SECOND_TO_NANOSECOND + + statbuf.st_atimespec.tv_nsec); +#else + accessTime = std::chrono::duration( + statbuf.st_atim.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atim.tv_nsec); +#endif return Status::OK(); } diff --git a/setup.cfg b/setup.cfg index db17bb626..71b83e8a0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -version = 0.22.0 +version = 0.22.1 [pycodestyle] max_line_length = 88 diff --git a/src/common/util/config.h b/src/common/util/config.h index 8b80b8c2c..a82a6fc6f 100644 --- a/src/common/util/config.h +++ b/src/common/util/config.h @@ -18,11 +18,11 @@ limitations under the License. #define VINEYARD_VERSION_MAJOR 0 #define VINEYARD_VERSION_MINOR 22 -#define VINEYARD_VERSION_PATCH 0 +#define VINEYARD_VERSION_PATCH 1 #define VINEYARD_VERSION \ ((VINEYARD_VERSION_MAJOR * 1000) + VINEYARD_VERSION_MINOR) * 1000 + \ VINEYARD_VERSION_PATCH -#define VINEYARD_VERSION_STRING "0.22.0" +#define VINEYARD_VERSION_STRING "0.22.1" #endif // SRC_COMMON_UTIL_CONFIG_H_