mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
Handle OOM errors for more types. Fix clang warnings and errors
This commit is contained in:
parent
30cf9541c2
commit
5e4aa0a1a8
20 changed files with 147 additions and 85 deletions
|
@ -338,7 +338,11 @@ bool Transaction::RunInShard(EngineShard* shard) {
|
|||
cb_ = nullptr; // We can do it because only a single thread runs the callback.
|
||||
local_result_ = status;
|
||||
} else {
|
||||
CHECK_EQ(OpStatus::OK, status);
|
||||
if (status == OpStatus::OUT_OF_MEMORY) {
|
||||
local_result_ = status;
|
||||
} else {
|
||||
CHECK_EQ(OpStatus::OK, status);
|
||||
}
|
||||
}
|
||||
} catch (std::bad_alloc&) {
|
||||
// TODO: to log at most once per sec.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue