mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
Remove TransactionLogIteratorRace when -DNDEBUG
This commit is contained in:
parent
11e8525422
commit
f813279da5
|
@ -5441,6 +5441,7 @@ TEST(DBTest, TransactionLogIterator) {
|
||||||
} while (ChangeCompactOptions());
|
} while (ChangeCompactOptions());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG // sync point is not included with DNDEBUG build
|
||||||
TEST(DBTest, TransactionLogIteratorRace) {
|
TEST(DBTest, TransactionLogIteratorRace) {
|
||||||
// Setup sync point dependency to reproduce the race condition of
|
// Setup sync point dependency to reproduce the race condition of
|
||||||
// a log file moved to archived dir, in the middle of GetSortedWalFiles
|
// a log file moved to archived dir, in the middle of GetSortedWalFiles
|
||||||
|
@ -5485,6 +5486,7 @@ TEST(DBTest, TransactionLogIteratorRace) {
|
||||||
}
|
}
|
||||||
} while (ChangeCompactOptions());
|
} while (ChangeCompactOptions());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST(DBTest, TransactionLogIteratorMoveOverZeroFiles) {
|
TEST(DBTest, TransactionLogIteratorMoveOverZeroFiles) {
|
||||||
do {
|
do {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
namespace rocksdb {
|
namespace rocksdb {
|
||||||
|
|
||||||
class Comparator;
|
class Comparator;
|
||||||
class FileMetaData;
|
struct FileMetaData;
|
||||||
|
|
||||||
// The file tree structure in Version is prebuilt and the range of each file
|
// The file tree structure in Version is prebuilt and the range of each file
|
||||||
// is known. On Version::Get(), it uses binary search to find a potential file
|
// is known. On Version::Get(), it uses binary search to find a potential file
|
||||||
|
|
Loading…
Reference in a new issue