Skip to content

Commit

Permalink
raftstore: don't print log for ComapctLog command (#5425)
Browse files Browse the repository at this point in the history
Signed-off-by: qupeng <qupeng@pingcap.com>
  • Loading branch information
hicqu authored and sre-bot committed Sep 9, 2019
1 parent c4aaa3e commit 3d79691
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/raftstore/store/worker/apply.rs
Expand Up @@ -919,13 +919,15 @@ impl ApplyDelegate {
request: &AdminRequest,
) -> Result<(RaftCmdResponse, Option<ExecResult>)> {
let cmd_type = request.get_cmd_type();
info!(
"{} execute admin command {:?} at [term: {}, index: {}]",
self.tag,
request,
ctx.exec_ctx.as_ref().unwrap().term,
ctx.exec_ctx.as_ref().unwrap().index
);
if cmd_type != AdminCmdType::CompactLog {
info!(
"{} execute admin command {:?} at [term: {}, index: {}]",
self.tag,
request,
ctx.exec_ctx.as_ref().unwrap().term,
ctx.exec_ctx.as_ref().unwrap().index
);
}

let (mut response, exec_result) = match cmd_type {
AdminCmdType::ChangePeer => self.exec_change_peer(ctx, request),
Expand Down

0 comments on commit 3d79691

Please sign in to comment.