feat(replication): First iteration on partial sync. (#1836)

First iteration on partial sync.
This commit is contained in:
Roy Jacobson 2023-09-26 10:35:50 +03:00 committed by GitHub
parent d9f4ca8003
commit d50b492e1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 524 additions and 86 deletions

View file

@ -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 {