Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • F frocksdb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • rui xia
  • frocksdb
  • Repository
Switch branch/tag
  • frocksdb
  • utilities
  • transactions
  • pessimistic_transaction.cc
Find file BlameHistoryPermalink
  • Cheng Chang's avatar
    Remove redundant update of txn_state_ in transaction Prepare (#6778) · 211088df
    Cheng Chang authored May 01, 2020
    Summary:
    When  expiration is set in a pessimistic transaction, `txn_state_` is already updated to `AWAITING_PREPARE` in the `if (expiration_time_ > 0)` block, there is  no need to update the state in `if (can_prepare)` block again.
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/6778
    
    Test Plan: make check
    
    Reviewed By: lth
    
    Differential Revision: D21335319
    
    Pulled By: cheng-chang
    
    fbshipit-source-id: 251d634cc7d1a0e86e673a59f0bda8584da5a35f
    211088df