torwig commented on code in PR #1702:
URL: https://github.com/apache/kvrocks/pull/1702#discussion_r1306986501
##########
src/commands/cmd_server.cc:
##########
@@ -980,6 +980,18 @@ static uint64_t GenerateConfigFlag(const
std::vector<std::string> &args) {
return 0;
}
+class CommandLastSave : public Commander {
+ public:
+ Status Execute(Server *svr, Connection *conn, std::string *output) override {
+ if (!conn->IsAdmin()) {
+ return {Status::RedisExecErr, errAdminPermissionRequired};
+ }
+
+ std::int64_t unix_sec = svr->GetLastBgsaveTime();
Review Comment:
Could we remove the `std::` prefix here and in all the similar places across
this PR?
--
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]