Skip to content

Commit e48f5c3

Browse files
Wine93rock-git
authored andcommitted
[fix][cache] Fix proto mismatch.
1 parent 6b51eee commit e48f5c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cache/cachegroup/cache_group_node_member.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace cachegroup {
3535

3636
using dingofs::base::time::TimeNow;
3737
using dingofs::cache::utils::LocalFileSystem;
38-
using dingofs::pb::mds::cachegroup::CacheGroupNodeMeta;
38+
using dingofs::pb::mds::cachegroup::CacheGroupNodeMetadata;
3939
using dingofs::pb::mds::cachegroup::CacheGroupOk;
4040

4141
CacheGroupNodeMemberImpl::CacheGroupNodeMemberImpl(
@@ -73,7 +73,7 @@ Status CacheGroupNodeMemberImpl::LoadMemberId(uint64_t* member_id) {
7373
LocalFileSystem fs;
7474
uint64_t length;
7575
std::shared_ptr<char> buffer;
76-
CacheGroupNodeMeta meta;
76+
CacheGroupNodeMetadata meta;
7777
auto filepath = option_.metadata_filepath();
7878

7979
auto status = fs.ReadFile(filepath, buffer, &length);
@@ -100,7 +100,7 @@ Status CacheGroupNodeMemberImpl::LoadMemberId(uint64_t* member_id) {
100100

101101
Status CacheGroupNodeMemberImpl::SaveMemberId(uint64_t member_id) {
102102
std::string buffer;
103-
CacheGroupNodeMeta meta;
103+
CacheGroupNodeMetadata meta;
104104
meta.set_member_id(member_id);
105105
meta.set_birth_time(TimeNow().seconds);
106106
if (!meta.SerializeToString(&buffer)) {

0 commit comments

Comments
 (0)