/**
   * Extends its super class to add in database operation information.
   *
   * @see LNLogEntry#getSize
   */
  @Override
  public int getSize() {
    int size = getBaseLNEntrySize(false /*keyIsLastSerializedField*/) + operationType.getLogSize();

    if (DbOperationType.isWriteConfigType(operationType)) {
      size += replicatedCreateConfig.getLogSize();
    }

    if (operationType == DbOperationType.TRUNCATE) {
      size += truncateOldDbId.getLogSize();
    }
    return size;
  }