Refactoring db_stress.cc (#3902)

Summary:
We use `db_stress.cc` intensively to test and verify the behavior of RocksDB. Sometimes we need to add new tests for recently added features. Original `StressTest` class provides many general functionality that can be leveraged by other tests. Therefore, in this refactoring PR, I try to identify the general operations as well as operations that future tests most likely want to customize. Future tests can inherit `StressTest` and overriding the virtual functions to test custom logic.
Closes https://github.com/facebook/rocksdb/pull/3902

Differential Revision: D8284607

Pulled By: riversand963

fbshipit-source-id: 019302d04665a2b18334b6d05d04a477168c8ea4
This commit is contained in:
Yanqin Jin 2018-06-07 10:34:56 -07:00 committed by Facebook Github Bot
parent 45b6bcca98
commit 0a0860a5fb
1 changed files with 782 additions and 657 deletions

File diff suppressed because it is too large Load Diff