mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
feat(replication): First iteration on partial sync. (#1836)
First iteration on partial sync.
This commit is contained in:
parent
d9f4ca8003
commit
d50b492e1f
21 changed files with 524 additions and 86 deletions
|
@ -20,15 +20,17 @@ using facade::kWrongTypeErr;
|
|||
|
||||
#ifndef RETURN_ON_ERR
|
||||
|
||||
#define RETURN_ON_ERR(x) \
|
||||
#define RETURN_ON_ERR_T(T, x) \
|
||||
do { \
|
||||
std::error_code __ec = (x); \
|
||||
if (__ec) { \
|
||||
DLOG(ERROR) << "Error " << __ec << " while calling " #x; \
|
||||
return __ec; \
|
||||
return (T)(__ec); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define RETURN_ON_ERR(x) RETURN_ON_ERR_T(std::error_code, x)
|
||||
|
||||
#endif // RETURN_ON_ERR
|
||||
|
||||
namespace rdb {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue