Skip to content

Commit

Permalink
Fix get top key issue #126
Browse files Browse the repository at this point in the history
  • Loading branch information
rd87 committed Dec 12, 2020
1 parent c34b0ed commit 70d5a29
Show file tree
Hide file tree
Showing 2 changed files with 664 additions and 663 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,13 @@ public Result getPrefixType(@RequestParam Long analyzeResultId) {
* @return
*/
@GetMapping("/top_key")
public Result getPrefixKeyByMem(@RequestParam Long analyzeResultId,
public Result getPrefixKeyByType(@RequestParam Long analyzeResultId,
@RequestParam Long type) {
try {
return Result.successResult(rdbAnalyzeResultService.getTopKeyFromResultByKey(analyzeResultId, type));
} catch (Exception e) {
LOG.error("getPrefixKeyByMem failed!", e);
return Result.failResult("getPrefixKeyByMem failed!");
LOG.error("Function getPrefixKeyByType failed, type code:"+type, e);
return Result.failResult("Get top key failed!");
}

}
Expand Down
Loading

0 comments on commit 70d5a29

Please sign in to comment.