Cursors refactoring part one
This commit is contained in:
parent
ef86d0adf9
commit
bfb1d007ad
19 changed files with 824 additions and 677 deletions
|
@ -182,7 +182,7 @@ TEST_F(CacheTransactionsTest, ConcurentModification) {
|
|||
|
||||
int pid = fork();
|
||||
if (pid == 0) { // I am the child
|
||||
usleep(1);
|
||||
usleep(5);
|
||||
std::cout << "beggining second transaction" << std::endl;
|
||||
LMDBAL::WriteTransaction txn2 = db->beginTransaction(); //<--- this is where the execution should pause
|
||||
//and wait for the first transaction to get finished
|
||||
|
@ -208,7 +208,7 @@ TEST_F(CacheTransactionsTest, ConcurentModification) {
|
|||
LMDBAL::WriteTransaction txn1 = db->beginTransaction();
|
||||
|
||||
std::cout << "putting parent thread to sleep for 5 ms" << std::endl;
|
||||
usleep(5);
|
||||
usleep(10);
|
||||
|
||||
std::cout << "adding first transaction value" << std::endl;
|
||||
c1->addRecord(5, 812, txn1);
|
||||
|
@ -235,7 +235,7 @@ TEST_F(CacheTransactionsTest, RAIIResourceFree) {
|
|||
|
||||
int pid = fork();
|
||||
if (pid == 0) { // I am the child
|
||||
usleep(1);
|
||||
usleep(5);
|
||||
std::cout << "beggining child transaction" << std::endl;
|
||||
LMDBAL::WriteTransaction txn2 = db->beginTransaction(); //<--- this is where the execution should pause
|
||||
//and wait for the first transaction to get finished
|
||||
|
@ -256,7 +256,7 @@ TEST_F(CacheTransactionsTest, RAIIResourceFree) {
|
|||
LMDBAL::WriteTransaction txn1 = db->beginTransaction();
|
||||
|
||||
std::cout << "putting parent thread to sleep for 5 ms" << std::endl;
|
||||
usleep(5);
|
||||
usleep(10);
|
||||
std::cout << "parent thread woke up" << std::endl;
|
||||
|
||||
std::cout << "adding value from parent thread" << std::endl;
|
||||
|
|
|
@ -181,7 +181,7 @@ TEST_F(StorageTransactionsTest, ConcurentModification) {
|
|||
|
||||
int pid = fork();
|
||||
if (pid == 0) { // I am the child
|
||||
usleep(1);
|
||||
usleep(5);
|
||||
std::cout << "beggining second transaction" << std::endl;
|
||||
LMDBAL::WriteTransaction txn2 = db->beginTransaction(); //<--- this is where the execution should pause
|
||||
//and wait for the first transaction to get finished
|
||||
|
@ -207,7 +207,7 @@ TEST_F(StorageTransactionsTest, ConcurentModification) {
|
|||
LMDBAL::WriteTransaction txn1 = db->beginTransaction();
|
||||
|
||||
std::cout << "putting parent thread to sleep for 5 ms" << std::endl;
|
||||
usleep(5);
|
||||
usleep(10);
|
||||
|
||||
std::cout << "adding first transaction value" << std::endl;
|
||||
t1->addRecord(5, 812, txn1);
|
||||
|
@ -234,7 +234,7 @@ TEST_F(StorageTransactionsTest, RAIIResourceFree) {
|
|||
|
||||
int pid = fork();
|
||||
if (pid == 0) { // I am the child
|
||||
usleep(1);
|
||||
usleep(5);
|
||||
std::cout << "beggining child transaction" << std::endl;
|
||||
LMDBAL::WriteTransaction txn2 = db->beginTransaction(); //<--- this is where the execution should pause
|
||||
//and wait for the first transaction to get finished
|
||||
|
@ -255,7 +255,7 @@ TEST_F(StorageTransactionsTest, RAIIResourceFree) {
|
|||
LMDBAL::WriteTransaction txn1 = db->beginTransaction();
|
||||
|
||||
std::cout << "putting parent thread to sleep for 5 ms" << std::endl;
|
||||
usleep(5);
|
||||
usleep(10);
|
||||
std::cout << "parent thread woke up" << std::endl;
|
||||
|
||||
std::cout << "adding value from parent thread" << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue