diff --git a/include/chainbase/chainbase.hpp b/include/chainbase/chainbase.hpp index ebb1fdca843..7ce93bc5cd7 100644 --- a/include/chainbase/chainbase.hpp +++ b/include/chainbase/chainbase.hpp @@ -1037,9 +1037,11 @@ namespace chainbase { bfs::path _data_dir; +#ifdef CHAINBASE_CHECK_LOCKING int32_t _read_lock_count = 0; int32_t _write_lock_count = 0; bool _enable_require_locking = false; +#endif void _msync_database(); };