be/src/load/group_commit/wal/wal_info.cpp
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #include "load/group_commit/wal/wal_info.h" |
19 | | |
20 | | namespace doris { |
21 | | |
22 | | WalInfo::WalInfo(int64_t wal_id, std::string wal_path, int32_t retry_num, int64_t start_time_ms) |
23 | 0 | : _wal_id(wal_id), |
24 | 0 | _wal_path(wal_path), |
25 | 0 | _retry_num(retry_num), |
26 | 0 | _start_time_ms(start_time_ms) {} |
27 | | |
28 | 0 | int64_t WalInfo::get_wal_id() { |
29 | 0 | return _wal_id; |
30 | 0 | } |
31 | | |
32 | 0 | std::string WalInfo::get_wal_path() { |
33 | 0 | return _wal_path; |
34 | 0 | } |
35 | | |
36 | 0 | int32_t WalInfo::get_retry_num() { |
37 | 0 | return _retry_num; |
38 | 0 | } |
39 | | |
40 | 0 | int64_t WalInfo::get_start_time_ms() { |
41 | 0 | return _start_time_ms; |
42 | 0 | } |
43 | | |
44 | 0 | void WalInfo::add_retry_num() { |
45 | 0 | _retry_num++; |
46 | 0 | } |
47 | | |
48 | | } // namespace doris |