t1->createNewKey(ib, 351);
t2->createNewKey(ic, 321);
t2->createNewKey(id, 351);
+ delete ia;
+ delete ib;
+ delete ic;
+ delete id;
}
// Do Updates for the keys
IoTString * iValueD = new IoTString(buffer);
t1->startTransaction();
- t1->addKV(iKeyA, iValueA);
+ t1->put(iKeyA, iValueA);
transStatusList->add(t1->commitTransaction());
+ delete iKeyA; delete iValueA;
+
t1->startTransaction();
- t1->addKV(iKeyB, iValueB);
+ t1->put(iKeyB, iValueB);
transStatusList->add(t1->commitTransaction());
+ delete iKeyB; delete iValueB;
t2->startTransaction();
- t2->addKV(iKeyC, iValueC);
+ t2->put(iKeyC, iValueC);
transStatusList->add(t2->commitTransaction());
+ delete iKeyC; delete iValueC;
t2->startTransaction();
- t2->addKV(iKeyD, iValueD);
+ t2->put(iKeyD, iValueD);
transStatusList->add(t2->commitTransaction());
+ delete iKeyD; delete iValueD;
}
+
printf("Updating Clients...\n");
t1->update();
t2->update();
printf("Key-Value t2 incorrect: keyD testValD2\n");
foundError = true;
}
+ delete iKeyA; delete iValueA;
+ delete iKeyB; delete iValueB;
+ delete iKeyC; delete iValueC;
+ delete iKeyD; delete iValueD;
+ delete testValA1; delete testValA2;
+ delete testValB1; delete testValB2;
+ delete testValC1; delete testValC2;
+ delete testValD1; delete testValD2;
}
for (uint i = 0; i < transStatusList->size(); i++) {
} else {
printf("No Errors Found...\n");
}
+
+ delete transStatusList;
+ delete t1;
+ delete t2;
}