|
|
@ -11,12 +11,12 @@ |
|
|
|
#include <unordered_map> |
|
|
|
#include <unordered_map> |
|
|
|
#include <vector> |
|
|
|
#include <vector> |
|
|
|
|
|
|
|
|
|
|
|
namespace rocksdb { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef NDEBUG |
|
|
|
#ifdef NDEBUG |
|
|
|
#define TEST_SYNC_POINT(x) |
|
|
|
#define TEST_SYNC_POINT(x) |
|
|
|
#else |
|
|
|
#else |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace rocksdb { |
|
|
|
|
|
|
|
|
|
|
|
// This class provides facility to reproduce race conditions deterministically
|
|
|
|
// This class provides facility to reproduce race conditions deterministically
|
|
|
|
// in unit tests.
|
|
|
|
// in unit tests.
|
|
|
|
// Developer could specify sync points in the codebase via TEST_SYNC_POINT.
|
|
|
|
// Developer could specify sync points in the codebase via TEST_SYNC_POINT.
|
|
|
|