fix: disable ThreadLocalMutex when big value ser is off (#3521)

* fix: disable ThreadLocalMutex when big value ser is off

* refactor: address comments

---------

Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-29.ec2.internal>
Co-authored-by: Borys <borys@dragonflydb.io>
This commit is contained in:
Kostas Kyrimis 2024-08-15 22:19:01 +03:00 committed by GitHub
parent ad3ebf61d2
commit d3a893f2a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 12 deletions

View file

@ -374,6 +374,9 @@ class ThreadLocalMutex {
EngineShard* shard_;
util::fb2::CondVarAny cond_var_;
bool flag_ = false;
util::fb2::detail::FiberInterface* locked_fiber_{nullptr};
};
extern size_t serialization_max_chunk_size;
} // namespace dfly