docs: @Override
      public synchronized void commit(boolean chain) {
  
  //        tempActionHistory.add("commit " + actionTimestamp);
          if (isClosed) {
              return;
          }
  
          if (!isTransaction) {
              isReadOnly    = isReadOnlyDefault;
              isolationMode = isolationModeDefault;
  
              return;
          }
  
          if (!database.txManager.commitTransaction(this)) {
  
  //            tempActionHistory.add("commit aborts " + actionTimestamp);
              rollback(false);
  
              throw Error.error(ErrorCode.X_40001);
          }
  
          endTransaction(true);
      }