diff --git a/src/yb/tools/yb-admin_cli.cc b/src/yb/tools/yb-admin_cli.cc index 61215b1e3d9e..b1eb39692163 100644 --- a/src/yb/tools/yb-admin_cli.cc +++ b/src/yb/tools/yb-admin_cli.cc @@ -1107,7 +1107,7 @@ Status split_tablet_action(const ClusterAdminCli::CLIArguments& args, ClusterAdm const auto disable_tablet_splitting_args = " "; Status disable_tablet_splitting_action( const ClusterAdminCli::CLIArguments& args, ClusterAdminClient* client) { - if (args.size() < 1) { + if (args.size() < 2) { return ClusterAdminCli::kInvalidArguments; } const int64_t disable_duration_ms = VERIFY_RESULT(CheckedStoll(args[0]));