HDFS-13534. libhdfs++: Fix GCC7 build. Contributed by James Clampffer.
This commit is contained in:
parent
377ea1bcdf
commit
b79ae5d93d
|
@ -58,6 +58,7 @@
|
||||||
#ifndef INCLUDE_HDFSPP_IOSERVICE_H_
|
#ifndef INCLUDE_HDFSPP_IOSERVICE_H_
|
||||||
#define INCLUDE_HDFSPP_IOSERVICE_H_
|
#define INCLUDE_HDFSPP_IOSERVICE_H_
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
// forward decl
|
// forward decl
|
||||||
|
|
|
@ -59,7 +59,7 @@ public:
|
||||||
void Connect(std::function<void(Status status, std::shared_ptr<DataNodeConnection> dn)> handler) override
|
void Connect(std::function<void(Status status, std::shared_ptr<DataNodeConnection> dn)> handler) override
|
||||||
{(void)handler; /*TODO: Handshaking goes here*/};
|
{(void)handler; /*TODO: Handshaking goes here*/};
|
||||||
|
|
||||||
void Cancel();
|
void Cancel() override;
|
||||||
private:
|
private:
|
||||||
DataTransferSaslStream(const DataTransferSaslStream &) = delete;
|
DataTransferSaslStream(const DataTransferSaslStream &) = delete;
|
||||||
DataTransferSaslStream &operator=(const DataTransferSaslStream &) = delete;
|
DataTransferSaslStream &operator=(const DataTransferSaslStream &) = delete;
|
||||||
|
|
|
@ -87,7 +87,7 @@ public:
|
||||||
virtual void cancel() {}
|
virtual void cancel() {}
|
||||||
virtual void close() {}
|
virtual void close() {}
|
||||||
protected:
|
protected:
|
||||||
virtual ProducerResult Produce() = 0;
|
ProducerResult Produce() override = 0;
|
||||||
::asio::io_service *io_service_;
|
::asio::io_service *io_service_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -82,7 +82,7 @@ public:
|
||||||
this->MockConnectionBase::async_write_some(buf, handler);
|
this->MockConnectionBase::async_write_some(buf, handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Cancel() {
|
void Cancel() override {
|
||||||
/* no-op, declared pure virtual */
|
/* no-op, declared pure virtual */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue