Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Change variable name to comply with fb c++ coding style
Browse files Browse the repository at this point in the history
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
yliang authored and groys committed Jun 7, 2010
1 parent b5c6128 commit 8bc3e64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/store.cpp
Expand Up @@ -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() {
Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/store.h
Expand Up @@ -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_;
};

/*
Expand Down

0 comments on commit 8bc3e64

Please sign in to comment.