Fix all the lint errors.
Summary: Scripted and removed all trailing spaces and converted all tabs to spaces. Also fixed other lint errors. All lint errors from this point of time should be taken seriously. Test Plan: make all check Reviewers: dhruba Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D7059
This commit is contained in:
parent
9b838535d1
commit
d29f181923
@ -452,7 +452,7 @@ struct ThreadState {
|
|||||||
Stats stats;
|
Stats stats;
|
||||||
SharedState* shared;
|
SharedState* shared;
|
||||||
|
|
||||||
ThreadState(int index)
|
/* implicit */ ThreadState(int index)
|
||||||
: tid(index),
|
: tid(index),
|
||||||
rand(1000 + index) {
|
rand(1000 + index) {
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
// Copyright (c) 2012 Facebook.
|
// Copyright (c) 2012 Facebook.
|
||||||
|
|
||||||
|
|
||||||
|
#include "db/memtablelist.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "leveldb/db.h"
|
#include "leveldb/db.h"
|
||||||
#include "db/memtable.h"
|
#include "db/memtable.h"
|
||||||
#include "db/memtablelist.h"
|
|
||||||
#include "leveldb/env.h"
|
#include "leveldb/env.h"
|
||||||
#include "leveldb/iterator.h"
|
#include "leveldb/iterator.h"
|
||||||
#include "util/coding.h"
|
#include "util/coding.h"
|
||||||
|
@ -29,7 +29,7 @@ struct FileMetaData {
|
|||||||
|
|
||||||
class VersionEdit {
|
class VersionEdit {
|
||||||
public:
|
public:
|
||||||
VersionEdit(int number_levels) :
|
/* implicit */ VersionEdit(int number_levels) :
|
||||||
number_levels_(number_levels) {
|
number_levels_(number_levels) {
|
||||||
Clear();
|
Clear();
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ class HdfsReadableFile: virtual public SequentialFile, virtual public RandomAcce
|
|||||||
size = pFileInfo->mSize;
|
size = pFileInfo->mSize;
|
||||||
hdfsFreeFileInfo(pFileInfo, 1);
|
hdfsFreeFileInfo(pFileInfo, 1);
|
||||||
} else {
|
} else {
|
||||||
throw new leveldb::HdfsFatalException("fileSize on unknown file " +
|
throw leveldb::HdfsFatalException("fileSize on unknown file " +
|
||||||
filename_);
|
filename_);
|
||||||
}
|
}
|
||||||
return size;
|
return size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user