Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5c1cec3

Browse files
committed
do not answer on status request until recovered
1 parent 2295b40 commit 5c1cec3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/state.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,17 @@ check_status_requests(MtmConfig *mtm_cfg)
12291229
mtm_log(StatusRequest, "got status request for %s from %d",
12301230
gid, sender_node_id);
12311231

1232+
/*
1233+
* During recovery we may answer with preliminary "notfound" message
1234+
* that woul cause erroneus abort of transaction beeing asked about.
1235+
*/
1236+
if (MtmGetCurrentStatus() < MTM_RECOVERED)
1237+
{
1238+
mtm_log(StatusRequest,
1239+
"skipping status request as node is not recovered yet");
1240+
continue;
1241+
}
1242+
12321243
state_3pc = GetLoggedPreparedXactState(gid);
12331244

12341245
// XXX: define this strings as constants like MULTIMASTER_PRECOMMITTED

0 commit comments

Comments
 (0)