MCPcopy Create free account
hub / github.com/BaseXdb/basex / addLocks

Method addLocks

basex-core/src/main/java/org/basex/core/cmd/Restore.java:97–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 @Override
98 public void addLocks() {
99 final LockList list = jc().locks.writes;
100 final String name = args[0], db = Databases.name(name);
101 if(db.isEmpty()) {
102 list.addGlobal();
103 } else {
104 // not sure whether database or name of backup file is provided: lock both
105 list.add(name).add(db);
106 }
107 }
108
109 @Override
110 public String shortInfo() {

Callers

nothing calls this directly

Calls 6

nameMethod · 0.95
addGlobalMethod · 0.95
addMethod · 0.95
jcMethod · 0.80
addMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected