Skip to content

Commit

Permalink
Fixed a compile warning in db_stress
Browse files Browse the repository at this point in the history
Summary:
Fixed the following compile warning in db_stress:
error: 'OnCompactionCompleted' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]

Test Plan: make db_stress

Reviewers: sdong, igor, anthony

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D39207
  • Loading branch information
yhchiang committed May 29, 2015
1 parent ebfdb3c commit d5a0c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/db_stress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ class DbStressListener : public EventListener {
}

virtual void OnCompactionCompleted(
DB *db, const CompactionJobInfo& ci) {
DB *db, const CompactionJobInfo& ci) override {
assert(db);
assert(db->GetName() == db_name_);
assert(IsValidColumnFamilyName(ci.cf_name));
Expand Down

0 comments on commit d5a0c0e

Please sign in to comment.