]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/pg: introduce PG::log_entry_version map
authorMatan Breizman <mbreizma@redhat.com>
Thu, 2 Nov 2023 10:00:06 +0000 (10:00 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 15 Nov 2023 16:12:48 +0000 (16:12 +0000)
commitc5146998b8da1e89debe00477a30c84bec036cd3
tree418ea182c727bf46cd08538f22014d2484828806
parente1e8d1f3fda37d39d0204ad6fc27db1fa2ed5612
crimson/osd/pg: introduce PG::log_entry_version map

`submit_error_log()` was returning `version` to be used later in
`failure_func` call to `complete_write()`.

Maintain the version returned from `submit_error_log()` in a dedicated map
to avoid handling the lifetime of 'version'.

Note: This change is crucial to the following change that will
      return 'error_fut' separately.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h