Skip to content
Snippets Groups Projects
Commit 9006519f authored by Eric Cano's avatar Eric Cano
Browse files

Fixed another missing fetch after relock error.

parent dba5d2fe
Branches
Tags
No related merge requests found
......@@ -86,6 +86,7 @@ TEST_F(cta_optionalTest, string_constructors) {
const optional<std::string> o4(x);
const std::string y = "Mum!";
const optional<std::string> o5(std::move(y));
const optional<std::string> o6("");
ASSERT_FALSE(o1 == o2);
ASSERT_FALSE(o2 == o3);
......@@ -101,6 +102,7 @@ TEST_F(cta_optionalTest, string_constructors) {
ASSERT_TRUE(bool(o3));
ASSERT_TRUE(bool(o4));
ASSERT_TRUE(bool(o5));
ASSERT_TRUE(bool(o6));
}
TEST_F(cta_optionalTest, bool_constructors) {
......
......@@ -37,6 +37,7 @@ BackendPopulator::BackendPopulator(cta::objectstore::Backend & be,
rel.release();
agent.insertAndRegisterSelf();
rel.lock(re);
re.fetch();
re.addOrGetDriveRegisterPointerAndCommit(m_agentReference, cl);
rel.release();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment