mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/51-work
This commit is contained in:
commit
4218eb0fde
1 changed files with 4 additions and 1 deletions
|
@ -8769,14 +8769,17 @@ Dbdih::resetReplicaSr(TabRecordPtr tabPtr){
|
|||
ConstPtr<ReplicaRecord> constReplicaPtr;
|
||||
constReplicaPtr.i = replicaPtr.i;
|
||||
constReplicaPtr.p = replicaPtr.p;
|
||||
if (setup_create_replica(fragPtr,
|
||||
if (tabPtr.p->storedTable == 0 ||
|
||||
setup_create_replica(fragPtr,
|
||||
&createReplica, constReplicaPtr))
|
||||
{
|
||||
jam();
|
||||
removeOldStoredReplica(fragPtr, replicaPtr);
|
||||
linkStoredReplica(fragPtr, replicaPtr);
|
||||
}
|
||||
else
|
||||
{
|
||||
jam();
|
||||
infoEvent("Forcing take-over of node %d due to unsufficient REDO"
|
||||
" for table %d fragment: %d",
|
||||
nodePtr.i, tabPtr.i, i);
|
||||
|
|
Loading…
Add table
Reference in a new issue