From 330f78f3334bcdcdb4cc2ab2dbf66604e0224d71 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 21 五月 2021 16:21:45 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/valib/bhshmq
---
box/node_center.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/box/node_center.h b/box/node_center.h
index ca16cc5..caaf054 100644
--- a/box/node_center.h
+++ b/box/node_center.h
@@ -51,14 +51,14 @@
typedef int64_t Offset;
public:
- void RecordMsg(const MsgI &msg) { msgs_.emplace(msg.id(), msg.Offset()); }
+ void RecordMsg(const MsgI &msg) { msgs_.emplace(msg.id(), msg); }
void FreeMsg(MsgId id);
void AutoRemove();
size_t size() const { return msgs_.size(); }
void DebugPrint() const;
private:
- std::unordered_map<MsgId, Offset> msgs_;
+ std::unordered_map<MsgId, MsgI> msgs_;
int64_t time_to_clean_ = 0;
};
--
Gitblit v1.8.0