Skip to content

Commit

Permalink
printer
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Aug 21, 2024
1 parent 9363ac3 commit 2f050e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/limestone/api/write_version_type.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 Project Tsurugi.
* Copyright 2022-2024 Project Tsurugi.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,6 +17,7 @@

#include <string>
#include <cstdint>
#include <ostream>

#include <limestone/api/epoch_id_type.h>

Expand Down Expand Up @@ -45,6 +46,10 @@ class write_version_type {
return this->epoch_number_ < value.epoch_number_;
}

friend std::ostream& operator<<(std::ostream& out, const write_version_type& wv) {
return out << std::string{"wv{"} << wv.epoch_number_ << "," << wv.minor_write_version_ << "}";
}

private:
/**
* @brief For PITR and major write version
Expand Down

0 comments on commit 2f050e3

Please sign in to comment.