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

Fixed missing agent lock bug.

parent 7537e5e3
No related branches found
No related tags found
No related merge requests found
......@@ -424,6 +424,7 @@ std::string cta::objectstore::RootEntry::addOrGetTapePoolAndCommit(const std::st
// Insert the tape pool, then its pointer, with agent intent log update
// First generate the intent. We expect the agent to be passed locked.
std::string tapePoolAddress = agent.nextId("tapePool");
ScopedExclusiveLock agl(agent);
agent.fetch();
agent.addToOwnership(tapePoolAddress);
agent.commit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment