/** * If logging occurs before locking, we must screen out write locks here. * * <p>If we allow the operation (e.g., for a non-replicated DB), then be sure to call the base * class method to prepare to undo in the (very unlikely) event that logging succeeds but locking * fails. [#22875] */ @Override public void preLogWithoutLock(DatabaseImpl database) { if (!database.allowReplicaWrite()) { disallowReplicaWrite(); } super.preLogWithoutLock(database); }