]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async, v2: drop reserve() from onwire crypto's TxHandler.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 19 Feb 2019 13:09:52 +0000 (14:09 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 21 Feb 2019 22:31:02 +0000 (23:31 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/msg/async/crypto_onwire.cc
src/msg/async/crypto_onwire.h

index 51b65f02a5fb013fecb53bc67cfb096929bf1abd..e04b63800ca04326f9205ae9374142b24e676bce 100644 (file)
@@ -63,10 +63,6 @@ public:
   void reset_tx_handler(
     std::initializer_list<std::uint32_t> update_size_sequence) override;
 
-  ceph::bufferlist::contiguous_filler reserve(const std::uint32_t size) override {
-    return buffer.append_hole(size);
-  }
-
   void authenticated_encrypt_update(const ceph::bufferlist& plaintext) override;
   ceph::bufferlist authenticated_encrypt_final() override;
 };
index fd676c5347f88e5fdcb2b1c3ad715ae16f3e363b..4917c367522526879ba22cea1e192cb8389ecb0d 100644 (file)
@@ -59,10 +59,6 @@ struct TxHandler {
   virtual void reset_tx_handler(
     std::initializer_list<std::uint32_t> update_size_sequence) = 0;
 
-  // Reserve n bytes in the bufferlist being crafted by TxHandler.
-  // TODO: this will be dropped altogether with new frame format
-  virtual ceph::bufferlist::contiguous_filler reserve(std::uint32_t) = 0;
-
   // Perform encryption. Client gives full ownership right to provided
   // bufferlist. The method MUST NOT be called after _final() if there
   // was no call to _reset().