Skip to content

Commit

Permalink
Add missing barriers
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed Aug 7, 2020
1 parent 9f1ad9c commit 09c8f1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/persist/sql/multi-driver/QueryPersistUTest.cxxtest
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ void QueryPersistUTest::do_test_meet(void)

// Run the query
_as->fetch_query(qry, key);
_as->barrier();

// Verify that only bicycles and cars were fetched
ValuePtr results = qry->getValue(key);
Expand All @@ -317,6 +318,7 @@ void QueryPersistUTest::do_test_meet(void)

// Should get back the same results.
_as->fetch_query(qry, key);
_as->barrier();
ValuePtr rtoo = qry->getValue(key);
printf("Re-got: %s\n", rtoo->to_string().c_str());

Expand Down Expand Up @@ -359,6 +361,7 @@ void QueryPersistUTest::do_test_join(void)

// Run the join
_as->fetch_query(join, key);
_as->barrier();

// Verify that vehicles were fetched
ValuePtr results = join->getValue(key);
Expand Down

0 comments on commit 09c8f1a

Please sign in to comment.