LemonLiTree commented on code in PR #19646:
URL: https://github.com/apache/doris/pull/19646#discussion_r1208906459
##########
be/src/util/jsonb_document.h:
##########
@@ -273,35 +276,43 @@ class Stream {
skip_whitespace();
}
- void clear_legPtr() { legPtr = nullptr; }
+ void clear_legPtr() { leg_ptr = nullptr; }
void set_legPtr(char* ptr) {
clear_legPtr();
- legPtr = ptr;
+ leg_ptr = ptr;
}
- char* get_legPtr() { return legPtr; }
+ char* get_legPtr() { return leg_ptr; }
- void clear_legLen() { legLen = 0; }
+ void clear_legLen() { leg_len = 0; }
Review Comment:
done
##########
be/src/util/jsonb_document.h:
##########
@@ -273,35 +276,43 @@ class Stream {
skip_whitespace();
}
- void clear_legPtr() { legPtr = nullptr; }
+ void clear_legPtr() { leg_ptr = nullptr; }
void set_legPtr(char* ptr) {
clear_legPtr();
- legPtr = ptr;
+ leg_ptr = ptr;
}
- char* get_legPtr() { return legPtr; }
+ char* get_legPtr() { return leg_ptr; }
- void clear_legLen() { legLen = 0; }
+ void clear_legLen() { leg_len = 0; }
- void add_legLen() { legLen++; }
+ void add_legLen() { leg_len++; }
Review Comment:
done
##########
be/src/util/jsonb_document.h:
##########
@@ -273,35 +276,43 @@ class Stream {
skip_whitespace();
}
- void clear_legPtr() { legPtr = nullptr; }
+ void clear_legPtr() { leg_ptr = nullptr; }
void set_legPtr(char* ptr) {
clear_legPtr();
- legPtr = ptr;
+ leg_ptr = ptr;
}
- char* get_legPtr() { return legPtr; }
+ char* get_legPtr() { return leg_ptr; }
- void clear_legLen() { legLen = 0; }
+ void clear_legLen() { leg_len = 0; }
- void add_legLen() { legLen++; }
+ void add_legLen() { leg_len++; }
- unsigned int get_legLen() { return legLen; }
+ unsigned int get_legLen() const { return leg_len; }
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]