code: func (txn *Txn) Abort() {
  	// Noop for a read transaction
  	if !txn.write {
  		return
  	}
  
  	// Check if already aborted or committed
  	if txn.rootTxn == nil {
  		return
  	}
  
  	// Clear the txn
  	txn.rootTxn = nil
  	txn.modified = nil
  
  	// Release the writer lock since this is invalid
  	txn.db.writer.Unlock()
  }
docs: // Abort is used to cancel this transaction.
  // This is a noop for read transactions.