Permalink
Browse files

Simple command line client to read/write from a database using a DB i…

…mplementation. Useful for testing DB layers, and inspecting values in the database.
  • Loading branch information...
brianfrankcooper committed May 11, 2010
1 parent 4881171 commit b71723cf22e16d7aa7fb28fe6997cc83a6d8dd90
Showing with 404 additions and 6 deletions.
  1. +6 −6 src/com/yahoo/ycsb/Client.java
  2. +398 −0 src/com/yahoo/ycsb/CommandLine.java
@@ -400,7 +400,7 @@ public static void main(String[] args)
if (args[argindex].compareTo("-threads")==0)
{
argindex++;
- if (argindex>args.length)
+ if (argindex>=args.length)
{
usageMessage();
System.exit(0);
@@ -412,7 +412,7 @@ public static void main(String[] args)
else if (args[argindex].compareTo("-target")==0)
{
argindex++;
- if (argindex>args.length)
+ if (argindex>=args.length)
{
usageMessage();
System.exit(0);
@@ -439,7 +439,7 @@ else if (args[argindex].compareTo("-s")==0)
else if (args[argindex].compareTo("-db")==0)
{
argindex++;
- if (argindex>args.length)
+ if (argindex>=args.length)
{
usageMessage();
System.exit(0);
@@ -450,7 +450,7 @@ else if (args[argindex].compareTo("-db")==0)
else if (args[argindex].compareTo("-l")==0)
{
argindex++;
- if (argindex>args.length)
+ if (argindex>=args.length)
{
usageMessage();
System.exit(0);
@@ -461,7 +461,7 @@ else if (args[argindex].compareTo("-l")==0)
else if (args[argindex].compareTo("-P")==0)
{
argindex++;
- if (argindex>args.length)
+ if (argindex>=args.length)
{
usageMessage();
System.exit(0);
@@ -492,7 +492,7 @@ else if (args[argindex].compareTo("-P")==0)
else if (args[argindex].compareTo("-p")==0)
{
argindex++;
- if (argindex>args.length)
+ if (argindex>=args.length)
{
usageMessage();
System.exit(0);
Oops, something went wrong.

0 comments on commit b71723c

Please sign in to comment.