Skip to content

Commit

Permalink
remove unused variable file_size (#231)
Browse files Browse the repository at this point in the history
Signed-off-by: Xinye Tao <[email protected]>
  • Loading branch information
tabokie authored Mar 21, 2022
1 parent 0b8c781 commit 7827af9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ class TitanDBImpl::FileManager : public BlobFileManager {
Status BatchDeleteFiles(
const std::vector<std::unique_ptr<BlobFileHandle>>& handles) override {
Status s;
uint64_t file_size = 0;
for (auto& handle : handles) {
s = db_->env_->DeleteFile(handle->GetName());
file_size += handle->GetFile()->GetFileSize();
}
{
MutexLock l(&db_->mutex_);
Expand Down

0 comments on commit 7827af9

Please sign in to comment.