Skip to content

Commit 6b8878d

Browse files
dssanjudahlerlend
authored andcommitted
Bug #30444982 : BUG #30427675 WL#8426 : "TESTDICT -N BUG13416603 I2" FAILS
Post-push fix- Remove redundant call to bzero() and memset() correct number of bytes. Approved-by: Priyanka Sangam <[email protected]>
1 parent c08e469 commit 6b8878d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14799,7 +14799,6 @@ Dbdict::set_index_stat_frag(Signal* signal, TableRecordPtr indexPtr)
1479914799
const Uint32 nodeIndex = value % noOfReplicas;
1480014800

1480114801
indexPtr.p->indexStatFragId = fragId;
14802-
bzero(indexPtr.p->indexStatNodes, sizeof(indexPtr.p->indexStatNodes));
1480314802

1480414803
/**
1480514804
* Use the bitmask for sorting, the order of node IDs in frag_data is
@@ -14813,7 +14812,7 @@ Dbdict::set_index_stat_frag(Signal* signal, TableRecordPtr indexPtr)
1481314812
}
1481414813

1481514814
// clear list
14816-
memset(indexPtr.p->indexStatNodes, 0, sizeof(indexPtr.p->indexStatNodes) / sizeof(Uint16));
14815+
memset(indexPtr.p->indexStatNodes, 0, sizeof(indexPtr.p->indexStatNodes));
1481714816

1481814817
// rotate the sorted nodes into the list
1481914818
for (Uint32 nodeId = sortedNodes.find_first(), i = 0;

0 commit comments

Comments
 (0)