(final MainOptions opts)
| 225 | } |
| 226 | |
| 227 | @Override |
| 228 | public void startUpdate(final MainOptions opts) throws BaseXException { |
| 229 | if(!table.lock(true)) throw new BaseXException(DB_PINNED_X, meta.name); |
| 230 | if(opts.get(MainOptions.AUTOFLUSH)) { |
| 231 | final IOFile upd = meta.updateFile(); |
| 232 | if(upd.exists()) throw new BaseXException(DB_UPDATED_X, meta.name); |
| 233 | if(!upd.touch()) throw Util.notExpected("%: could not create lock file.", meta.name); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | @Override |
| 238 | public synchronized void finishUpdate(final MainOptions opts) { |
nothing calls this directly
no test coverage detected