fix: fix dchecks (#1681)

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
Vladislav 2023-08-09 22:44:44 +03:00 committed by GitHub
parent b9e8a2c0da
commit 663c1f9e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -879,7 +879,7 @@ void Connection::SendMonitorMessageAsync(string msg) {
void Connection::SendAsync(MessageHandle msg) {
DCHECK(cc_);
DCHECK(owner());
DCHECK_EQ(ProactorBase::me(), owner()->socket()->proactor());
DCHECK_EQ(ProactorBase::me(), socket_->proactor());
if (cc_->conn_closing)
return;

View file

@ -66,9 +66,6 @@ Transaction::~Transaction() {
}
void Transaction::InitBase(DbIndex dbid, CmdArgList args) {
// Switching db index is only possible for non-atomic execution
DCHECK(!multi_ || (db_index_ == dbid || multi_->mode == NON_ATOMIC));
global_ = false;
db_index_ = dbid;
full_args_ = args;