acelyc111 commented on code in PR #1598:
URL:
https://github.com/apache/incubator-pegasus/pull/1598#discussion_r1360922635
##########
src/base/pegasus_utils.h:
##########
@@ -106,6 +118,16 @@ std::string c_escape_string(const T &src, bool
always_escape = false)
// ----------------------------------------------------------------------
int c_unescape_string(const std::string &src, std::string &dest);
+template <class T>
+std::string redact_sensitive_string(const T &src)
+{
+ if (FLAGS_encrypt_data_at_rest) {
+ return "<redacted>";
Review Comment:
How about defining `"<redacted>"` as static constant varible?
--
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]