Skip to content

Commit

Permalink
Fixed lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
GayathriKaliyamoorthy committed Oct 31, 2015
1 parent 0a3631f commit dab024b
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions examples/index_remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function run(client) {
!argv.quiet && console.log("OK.");
}
});
});
};


function isError(err) {
Expand All @@ -198,4 +198,4 @@ aerospike.client(config).connect(function(err, client) {
} else {
run(client)
}
});
});
2 changes: 1 addition & 1 deletion examples/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var request = argv._.length !== 0 ? argv._.shift() : "statistics";

if (argv.help === true) {
argp.showHelp();
return;
process.exit(0);
}

iteration.setLimit(argv.iterations);
Expand Down
4 changes: 2 additions & 2 deletions examples/info_host.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var request = argv._.length !== 0 ? argv._.shift() : "statistics";

if (argv.help === true) {
argp.showHelp();
return;
process.exit(0);
}

iteration.setLimit(argv.iterations);
Expand Down Expand Up @@ -177,4 +177,4 @@ aerospike.client(config).connect(function(err, client) {
} else {
run(client)
}
});
});
4 changes: 2 additions & 2 deletions examples/llist.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var argv = argp.argv;

if (argv.help === true) {
argp.showHelp();
return;
process.exit(0);
}

/*******************************************************************************
Expand Down Expand Up @@ -250,4 +250,4 @@ client.connect(function(err, client) {



});
});
6 changes: 3 additions & 3 deletions examples/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ var logfile = argv._.length === 1 ? argv._[0] : null;

if (argv.help === true) {
argp.showHelp();
return;
process.exit(0);
}

if (logfile === null) {
console.error("Error: Please provide a logfile for the operation");
console.error();
argp.showHelp();
return;
process.exit(1);
}


Expand Down Expand Up @@ -249,4 +249,4 @@ operations = [

operations.reduceRight(function(r, l) {
return l(r);
})();
})();
4 changes: 2 additions & 2 deletions examples/query_aggregate.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var argv = argp.argv;

if (argv.help === true) {
argp.showHelp();
return;
process.exit(0);
}

iteration.setLimit(argv.iterations);
Expand Down Expand Up @@ -193,4 +193,4 @@ aerospike.client(config).connect(function(err, client) {
} else {
run(client)
}
});
});
2 changes: 1 addition & 1 deletion examples/query_geospatial.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var argv = argp.argv;

if ( argv.help === true ) {
argp.showHelp();
return;
process.exit(0);
}

/*******************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions examples/scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function run(client) {

var options = {
nobins: false,
concurrent: true,
concurrent: true
};

var stream = client.query(argv.namespace, argv.set, options).execute();
Expand Down Expand Up @@ -184,4 +184,4 @@ aerospike.client(config).connect(function(err, client) {
} else {
run(client);
}
});
});
12 changes: 6 additions & 6 deletions src/main/client/query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void ParseWhereClause(as_query* query, Local<Object> filter, LogInfo* log)
}
}

void ParseRecordQSize( int* q_size, Local<Object> qSize, LogInfo* log)
void ParseRecordQSize( int* q_size, Local<Value> qSize, LogInfo* log)
{
//Set the queue size here.
//This is the temporary queue where objects returned by query callback is stored.
Expand Down Expand Up @@ -238,7 +238,7 @@ void ParseUDFArgs(QueryScan* queryScan, Local<Object> udf, LogInfo* log, bool is
}


void ParseScanPriority(as_scan* scan, Local<Object> obj, LogInfo* log)
void ParseScanPriority(as_scan* scan, Local<Value> obj, LogInfo* log)
{
//Nan::HandleScope scope;
//Set the scan_priority of the scan.
Expand All @@ -255,7 +255,7 @@ void ParseScanPriority(as_scan* scan, Local<Object> obj, LogInfo* log)
}
}

void ParseScanPercent(as_scan* scan, Local<Object> obj, LogInfo* log)
void ParseScanPercent(as_scan* scan, Local<Value> obj, LogInfo* log)
{
Nan::HandleScope scope;
//Set the percentage to be scanned in each partition.
Expand Down Expand Up @@ -372,7 +372,7 @@ void ParseConfig( AerospikeQuery* query, Local<Object> config)
}

if( config->Has(Nan::New("recordQSize").ToLocalChecked())) {
ParseRecordQSize(&query->q_size, config->Get(Nan::New("recordQSize").ToLocalChecked())->ToObject(), log);
ParseRecordQSize(&query->q_size, config->Get(Nan::New("recordQSize").ToLocalChecked()), log);
}

if( config->Has(Nan::New("aggregationUDF").ToLocalChecked())) {
Expand All @@ -393,10 +393,10 @@ void ParseConfig( AerospikeQuery* query, Local<Object> config)
if( query->type == SCAN || query->type == SCANUDF) {
as_scan* scan = query->query_scan.scan;
if(config->Has(Nan::New("priority").ToLocalChecked())) {
ParseScanPriority(scan, config->Get(Nan::New("priority").ToLocalChecked())->ToObject(), log);
ParseScanPriority(scan, config->Get(Nan::New("priority").ToLocalChecked()), log);
}
if(config->Has(Nan::New("percent").ToLocalChecked())) {
ParseScanPercent(scan, config->Get(Nan::New("percent").ToLocalChecked())->ToObject(), log);
ParseScanPercent(scan, config->Get(Nan::New("percent").ToLocalChecked()), log);
}
if(config->Has(Nan::New("nobins").ToLocalChecked())) {
ParseScanNobins(scan, config->Get(Nan::New("nobins").ToLocalChecked()), log);
Expand Down

0 comments on commit dab024b

Please sign in to comment.