Skip to content

Commit

Permalink
Bump up vineyard version to v0.22.1
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow committed Apr 19, 2024
1 parent 9e39407 commit 3e91a0b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}'.")
Expand Down
4 changes: 2 additions & 2 deletions charts/vineyard-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion k8s/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
6 changes: 4 additions & 2 deletions modules/llm-cache/storage/file_storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,10 @@ void FileStorage::PrintFileAccessTime(std::string path) {

std::string FileStorage::GetTimestamp(
std::chrono::duration<int64_t, std::nano> time) {
auto duration_since_epoch = std::chrono::duration_cast<std::chrono::system_clock::duration>(time);
std::chrono::time_point<std::chrono::system_clock> timestamp = std::chrono::system_clock::time_point(duration_since_epoch);
auto duration_since_epoch =
std::chrono::duration_cast<std::chrono::system_clock::duration>(time);
std::chrono::time_point<std::chrono::system_clock> timestamp =
std::chrono::system_clock::time_point(duration_since_epoch);
time_t t = std::chrono::system_clock::to_time_t(timestamp);

std::tm tm;
Expand Down
15 changes: 8 additions & 7 deletions modules/llm-cache/storage/local_file_storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,14 @@ Status LocalFileStorage::GetFileAccessTime(
return Status::IOError("Failed to get file access time: " +
formatIOError(path));
}
#ifdef __APPLE__
accessTime = std::chrono::duration<int64_t, std::nano>(
statbuf.st_atimespec.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atimespec.tv_nsec);
#else
accessTime = std::chrono::duration<int64_t, std::nano>(
statbuf.st_atim.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atim.tv_nsec);
#endif
#ifdef __APPLE__
accessTime = std::chrono::duration<int64_t, std::nano>(
statbuf.st_atimespec.tv_sec * SECOND_TO_NANOSECOND +
statbuf.st_atimespec.tv_nsec);
#else
accessTime = std::chrono::duration<int64_t, std::nano>(
statbuf.st_atim.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atim.tv_nsec);
#endif
return Status::OK();
}

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
version = 0.22.0
version = 0.22.1

[pycodestyle]
max_line_length = 88
Expand Down
4 changes: 2 additions & 2 deletions src/common/util/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_

0 comments on commit 3e91a0b

Please sign in to comment.