]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Make AuthResult::get_completer return rvalue reference
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 10 Apr 2017 17:09:57 +0000 (13:09 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 11 Apr 2017 01:57:14 +0000 (21:57 -0400)
Since we are explicitly moving the completer out of the AuthResult
and allowing the client to have ownership of it, simply return an
rvalue reference rather than moving into a temporary that is itself
returned.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_auth.h

index 8dcd2e7b0561ab9a227d6087bab9378831c53c0a..8118ac150d3912a41dc89ee5994d8ae312d501c7 100644 (file)
@@ -228,7 +228,7 @@ public:
       return std::move(result_pair.first);
     }
 
-    Completer::cmplptr_t get_completer() {
+    Completer::cmplptr_t&& get_completer() {
       return std::move(result_pair.second);
     }