[CP] add serialization size check
This commit is contained in:
@ -68,6 +68,7 @@ public:
|
||||
int erase_refactored(const common::ObString &key, ObSessionVariable *sess_var = NULL);
|
||||
int64_t size() const {return map_.size();}
|
||||
NEED_SERIALIZE_AND_DESERIALIZE;
|
||||
TO_STRING_KV(K(size()));
|
||||
private:
|
||||
int free_mem();
|
||||
|
||||
|
||||
@ -509,6 +509,8 @@ struct ObInnerContextMap {
|
||||
ObInnerContextHashMap *context_map_;
|
||||
common::ObIAllocator &alloc_;
|
||||
OB_UNIS_VERSION(1);
|
||||
public:
|
||||
TO_STRING_KV(K(context_name_), K(context_map_->size()));
|
||||
};
|
||||
typedef common::hash::ObHashMap<common::ObString, ObInnerContextMap *,
|
||||
common::hash::NoPthreadDefendMode,
|
||||
|
||||
Reference in New Issue
Block a user