code: void updateStorageState(long storageLength, boolean storageSealed, boolean deleted, boolean storageDeleted) {
          this.storageLength = storageLength;
          this.sealedInStorage = storageSealed;
          this.deleted = deleted;
          this.deletedInStorage = storageDeleted;
          this.isChanged = true;
      }
docs: Updates the transaction with the given state of the segment in storage.
  
  This method is only meant to be used during recovery mode when we need to restore the state of a segment.
  During normal operations, these values are set asynchronously by the Writer.
  
  @param storageLength  The value to set as StorageLength.
  @param storageSealed  The value to set as SealedInStorage.
  @param deleted        The value to set as Deleted.
  @param storageDeleted The value to set as DeletedInStorage.