Fix constness in certain operations
This commit is contained in:
@@ -80,7 +80,7 @@ int64_t IdGlobalPool::alloc_id_for_thread(lua_State *L) {
|
||||
}
|
||||
}
|
||||
|
||||
void IdGlobalPool::serialize(StreamBuffer *sb) {
|
||||
void IdGlobalPool::serialize(StreamBuffer *sb) const {
|
||||
sb->write_int64(next_batch_);
|
||||
sb->write_int64(next_id_);
|
||||
sb->write_uint32(salvaged_.size());
|
||||
@@ -171,7 +171,7 @@ void IdPlayerPool::prepare_thread(lua_State *L) {
|
||||
lua_setnextid(L, get_batch());
|
||||
}
|
||||
|
||||
void IdPlayerPool::serialize(StreamBuffer *sb) {
|
||||
void IdPlayerPool::serialize(StreamBuffer *sb) const {
|
||||
sb->write_uint8(fifo_capacity_);
|
||||
sb->write_uint8(ranges_.size());
|
||||
for (int64_t batch : ranges_) {
|
||||
|
||||
Reference in New Issue
Block a user