]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/PGBackend: rename submit_transaction field roll_forward_to
authorSamuel Just <sjust@redhat.com>
Fri, 13 Dec 2019 20:06:31 +0000 (12:06 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 20 Dec 2019 01:35:36 +0000 (17:35 -0800)
This field is actually just a lower bound on committed, client
visible log versions.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ECBackend.cc
src/osd/ECBackend.h
src/osd/PGBackend.h
src/osd/ReplicatedBackend.h

index e82b64fae1de3ee2b67738a37eb55de0d52334da..27c3dd03223f0f7c75818c59d055f0340eca69c6 100644 (file)
@@ -1485,7 +1485,7 @@ void ECBackend::submit_transaction(
   const eversion_t &at_version,
   PGTransactionUPtr &&t,
   const eversion_t &trim_to,
-  const eversion_t &roll_forward_to,
+  const eversion_t &min_last_complete_ondisk,
   const vector<pg_log_entry_t> &log_entries,
   std::optional<pg_hit_set_history_t> &hset_history,
   Context *on_all_commit,
@@ -1500,7 +1500,7 @@ void ECBackend::submit_transaction(
   op->delta_stats = delta_stats;
   op->version = at_version;
   op->trim_to = trim_to;
-  op->roll_forward_to = std::max(roll_forward_to, committed_to);
+  op->roll_forward_to = std::max(min_last_complete_ondisk, committed_to);
   op->log_entries = log_entries;
   std::swap(op->updated_hit_set_history, hset_history);
   op->on_all_commit = on_all_commit;
index 230542bc6de501782e0054a14d357df65677ca9a..c34c5c52e1ebc8b55df56980cb0bf22b04a80648 100644 (file)
@@ -102,7 +102,7 @@ public:
     const eversion_t &at_version,
     PGTransactionUPtr &&t,
     const eversion_t &trim_to,
-    const eversion_t &roll_forward_to,
+    const eversion_t &min_last_complete_ondisk,
     const vector<pg_log_entry_t> &log_entries,
     std::optional<pg_hit_set_history_t> &hset_history,
     Context *on_all_commit,
index 513c62763352db7d1694ffcb1bdbbf8011ef8e4b..1b4c48fd48cebc2a9f7b05c1390d5e72eec8c57c 100644 (file)
@@ -448,7 +448,8 @@ typedef std::shared_ptr<const OSDMap> OSDMapRef;
      const eversion_t &at_version,        ///< [in] version
      PGTransactionUPtr &&t,               ///< [in] trans to execute (move)
      const eversion_t &trim_to,           ///< [in] trim log to here
-     const eversion_t &roll_forward_to,  ///< [in] trim rollback info to here
+     const eversion_t &min_last_complete_ondisk, ///< [in] lower bound on
+                                                 ///  committed version
      const vector<pg_log_entry_t> &log_entries, ///< [in] log entries for t
      /// [in] hitset history (if updated with this transaction)
      std::optional<pg_hit_set_history_t> &hset_history,
index 4e272e492ee947b65c4fa5bdcf328165413402c1..98195ba304ee45cc4dca0b71f4116b864126ba38 100644 (file)
@@ -365,7 +365,7 @@ public:
     const eversion_t &at_version,
     PGTransactionUPtr &&t,
     const eversion_t &trim_to,
-    const eversion_t &roll_forward_to,
+    const eversion_t &min_last_complete_ondisk,
     const vector<pg_log_entry_t> &log_entries,
     std::optional<pg_hit_set_history_t> &hset_history,
     Context *on_all_commit,