forked from makman07/curve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hanqing Wu <[email protected]>
- Loading branch information
1 parent
493e365
commit de6984e
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
thirdparties/braft/0001-fix-change-set_error-to-set_errorv.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 5a6d0378fb7c913f5410ec105e5c6db5259d32fe Mon Sep 17 00:00:00 2001 | ||
From: Hanqing Wu <[email protected]> | ||
Date: Wed, 26 Jul 2023 17:41:22 +0800 | ||
Subject: [PATCH] fix: change set_error to set_errorv | ||
|
||
--- | ||
src/braft/log_manager.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/braft/log_manager.cpp b/src/braft/log_manager.cpp | ||
index cf07775..75e2597 100644 | ||
--- a/src/braft/log_manager.cpp | ||
+++ b/src/braft/log_manager.cpp | ||
@@ -939,7 +939,7 @@ void LogManager::report_error(int error_code, const char* fmt, ...) { | ||
va_start(ap, fmt); | ||
Error e; | ||
e.set_type(ERROR_TYPE_LOG); | ||
- e.status().set_error(error_code, fmt, ap); | ||
+ e.status().set_errorv(error_code, fmt, ap); | ||
va_end(ap); | ||
_fsm_caller->on_error(e); | ||
} | ||
-- | ||
2.37.2 | ||
|