mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
feat(server): Implement robust error & cancellation on replica (#531)
This commit is contained in:
parent
a0fe3c3dcc
commit
f98d6f3357
9 changed files with 377 additions and 159 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <atomic>
|
||||
#include <string>
|
||||
#include <system_error>
|
||||
|
||||
#include "facade/error.h"
|
||||
|
||||
|
@ -21,7 +22,7 @@ using facade::kWrongTypeErr;
|
|||
|
||||
#define RETURN_ON_ERR(x) \
|
||||
do { \
|
||||
auto __ec = (x); \
|
||||
std::error_code __ec = (x); \
|
||||
if (__ec) { \
|
||||
LOG(ERROR) << "Error " << __ec << " while calling " #x; \
|
||||
return __ec; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue