Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change variable name to comply with fb c++ coding style

Summary:
private member variable should be lower camel case with a tailing _

Test Plan:
compile

DiffCamp Revision: 120003
Reviewed By: pkhemani
CC: agiardullo, pkhemani
Revert Plan:
OK

git-svn-id: svn+ssh://tubbs/svnapps/fbomb/branches/scribe-os/fbcode/scribe@29008 2248de34-8caa-4a3c-bc55-5e52d9d7b73a
  • Loading branch information...
commit 8bc3e64ee696f87dcbf1eb1fec7f478279de13d7 1 parent b5c6128
yliang authored groys committed
Showing with 7 additions and 7 deletions.
  1. +6 −6 src/store.cpp
  2. +1 −1  src/store.h
View
12 src/store.cpp
@@ -594,7 +594,7 @@ FileStore::FileStore(StoreQueue* storeq,
: FileStoreBase(storeq, category, "file", multi_category),
isBufferFile(is_buffer_file),
addNewlines(false),
- lost_bytes(0) {
+ lostBytes_(0) {
}
FileStore::~FileStore() {
@@ -910,9 +910,9 @@ void FileStore::deleteOldest(struct tm* now) {
}
shared_ptr<FileInterface> deletefile = FileInterface::createFileInterface(fsType,
makeFullFilename(index, now));
- if (lost_bytes) {
- g_Handler->incCounter(categoryHandled, "bytes lost", lost_bytes);
- lost_bytes = 0;
+ if (lostBytes_) {
+ g_Handler->incCounter(categoryHandled, "bytes lost", lostBytes_);
+ lostBytes_ = 0;
}
deletefile->deleteFile();
}
@@ -1004,9 +1004,9 @@ bool FileStore::readOldest(/*out*/ boost::shared_ptr<logentry_vector_t> messages
}
}
if (loss < 0) {
- lost_bytes = -loss;
+ lostBytes_ = -loss;
} else {
- lost_bytes = 0;
+ lostBytes_ = 0;
}
infile->close();
View
2  src/store.h
@@ -229,7 +229,7 @@ class FileStore : public FileStoreBase {
// disallow copy, assignment, and empty construction
FileStore(FileStore& rhs);
FileStore& operator=(FileStore& rhs);
- long lost_bytes;
+ long lostBytes_;
};
/*
Please sign in to comment.
Something went wrong with that request. Please try again.