]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: rename _scan_requests force_resend -> skipped_map
authorSage Weil <sage@redhat.com>
Thu, 12 Oct 2017 20:49:00 +0000 (15:49 -0500)
committerSage Weil <sage@redhat.com>
Sat, 2 Dec 2017 03:26:48 +0000 (21:26 -0600)
This is what the caller is passing.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc
src/osdc/Objecter.h

index 2dad8238cb11039fa05053ea52f41609b9edadc4..df3d2f5a8855d8365fc9f109e59cb77276239179 100644 (file)
@@ -1022,7 +1022,7 @@ bool Objecter::ms_dispatch(Message *m)
 }
 
 void Objecter::_scan_requests(OSDSession *s,
-                             bool force_resend,
+                             bool skipped_map,
                              bool cluster_full,
                              map<int64_t, bool> *pool_full_map,
                              map<ceph_tid_t, Op*>& need_resend,
@@ -1052,7 +1052,7 @@ void Objecter::_scan_requests(OSDSession *s,
        (*pool_full_map)[op->target.base_oloc.pool];
     switch (r) {
     case RECALC_OP_TARGET_NO_ACTION:
-      if (!force_resend && !force_resend_writes)
+      if (!skipped_map && !force_resend_writes)
        break;
       // -- fall-thru --
     case RECALC_OP_TARGET_NEED_RESEND:
@@ -1086,7 +1086,7 @@ void Objecter::_scan_requests(OSDSession *s,
                         op->session ? op->session->con.get() : nullptr);
     switch (r) {
     case RECALC_OP_TARGET_NO_ACTION:
-      if (!force_resend && !(force_resend_writes && op->respects_full()))
+      if (!skipped_map && !(force_resend_writes && op->respects_full()))
        break;
       // -- fall-thru --
     case RECALC_OP_TARGET_NEED_RESEND:
@@ -1116,7 +1116,7 @@ void Objecter::_scan_requests(OSDSession *s,
     switch (r) {
     case RECALC_OP_TARGET_NO_ACTION:
       // resend if skipped map; otherwise do nothing.
-      if (!force_resend && !force_resend_writes)
+      if (!skipped_map && !force_resend_writes)
        break;
       // -- fall-thru --
     case RECALC_OP_TARGET_NEED_RESEND:
index 110055a7feb32a574fdf3f5ee6dd467a037b27e8..f50af90cebb3fdfac9cf2f77fb8d7488612ce206 100644 (file)
@@ -2082,7 +2082,7 @@ private:
   void unset_osdmap_full_try() { osdmap_full_try = false; }
 
   void _scan_requests(OSDSession *s,
-                     bool force_resend,
+                     bool skipped_map,
                      bool cluster_full,
                      map<int64_t, bool> *pool_full_map,
                      map<ceph_tid_t, Op*>& need_resend,