You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2022/08/11 04:14:00 UTC

[kudu] branch master updated: [tools] fix misprint in one of 'kudu table list' validators

This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a9a8033e [tools] fix misprint in one of 'kudu table list' validators
8a9a8033e is described below

commit 8a9a8033e819352b59f5675b0c496c624b05b90c
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Wed Aug 10 16:13:11 2022 -0700

    [tools] fix misprint in one of 'kudu table list' validators
    
    This is a follow-up to 76d540c137c991127865d5d2455d113677a9afe9.
    
    Change-Id: I7fc01d8540f573d1126d797ba9e951ce4b58d37d
    Reviewed-on: http://gerrit.cloudera.org:8080/18831
    Reviewed-by: Yingchun Lai <ac...@gmail.com>
    Reviewed-by: Abhishek Chennaka <ac...@cloudera.com>
    Tested-by: Alexey Serbin <al...@apache.org>
---
 src/kudu/tools/tool_action_table.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/kudu/tools/tool_action_table.cc b/src/kudu/tools/tool_action_table.cc
index d43c2b299..50ce04f3c 100644
--- a/src/kudu/tools/tool_action_table.cc
+++ b/src/kudu/tools/tool_action_table.cc
@@ -24,6 +24,7 @@
 #include <optional>
 #include <set>
 #include <string>
+#include <type_traits>
 #include <unordered_map>
 #include <utility>
 #include <vector>
@@ -130,7 +131,7 @@ DEFINE_bool(show_hash_partition_info, false,
             "Include hash partition keys information corresponding to tablet in the output.");
 
 bool ValidateShowHashPartitionInfo() {
-  if (!FLAGS_show_tablet_partition_info && FLAGS_show_tablet_partition_info) {
+  if (!FLAGS_show_tablet_partition_info && FLAGS_show_hash_partition_info) {
     LOG(ERROR) << Substitute("--show_hash_partition_info is meaningless "
                              "when --show_tablet_partition_info=false");
     return false;