Implement DEBUG RELOAD option.

Fix c++ and openssl deprecation warnings.
This commit is contained in:
Roman Gershman 2022-04-12 08:34:48 +03:00
parent d2b6907f2d
commit 7f8346cded
9 changed files with 219 additions and 145 deletions

View file

@ -452,6 +452,7 @@ void Transaction::RunNoop(EngineShard* shard) {
}
void Transaction::ScheduleInternal() {
DCHECK(!shard_data_.empty());
DCHECK_EQ(0u, txid_);
DCHECK_EQ(0, coordinator_state_ & (COORD_SCHED | COORD_OOO));
@ -886,6 +887,8 @@ bool Transaction::ScheduleUniqueShard(EngineShard* shard) {
// This function should not block since it's run via RunBriefInParallel.
pair<bool, bool> Transaction::ScheduleInShard(EngineShard* shard) {
DCHECK(!shard_data_.empty());
// schedule_success, lock_granted.
pair<bool, bool> result{false, false};