Fix "gcc -Wall" warnings for assoc-thrift code.

Summary:

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:
This commit is contained in:
Dhruba Borthakur
2012-08-01 17:28:35 -07:00
parent d82cfe1241
commit a3a8f83482
5 changed files with 19 additions and 20 deletions

View File

@@ -131,7 +131,7 @@ class DBHandler : virtual public DBIf {
leveldb::WriteBatch lbatch;
woptions.sync = options.sync;
leveldb::Slice key, value;
for (int i = 0; i < batch.size(); i++) {
for (unsigned int i = 0; i < batch.size(); i++) {
kv one = batch[i];
key.data_ = one.key.data.data();
key.size_ = one.key.size;
@@ -374,10 +374,10 @@ class DBHandler : virtual public DBIf {
// check special ranges.
if (start->size_ == 0) {
start == NULL;
start = NULL;
}
if (stop->size_ == 0) {
stop == NULL;
stop = NULL;
}
db->CompactRange(start, stop);
return Code::kOk;
@@ -392,6 +392,7 @@ class DBHandler : virtual public DBIf {
static void* startOneService(void *arg) {
TSimpleServer* t = (TSimpleServer *)arg;
t->serve();
return NULL;
}