From 74c1f84f72d4f4880eb2c7b419a2d5e80a67d194 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 1 Oct 2009 13:28:02 -0700 Subject: [PATCH] messages: Add a completely useless and unused MMDSOffloadComplete message. --- src/messages/MMDSOffloadComplete.h | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/messages/MMDSOffloadComplete.h diff --git a/src/messages/MMDSOffloadComplete.h b/src/messages/MMDSOffloadComplete.h new file mode 100644 index 0000000000000..f11e52c51538d --- /dev/null +++ b/src/messages/MMDSOffloadComplete.h @@ -0,0 +1,46 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab +/* + * Ceph - scalable distributed file system + * + * Copyright (C) 2009 Sage Weil + * + * This is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + * + */ + +#ifndef __MMDSOffloadComplete_H +#define __MMDSOffloadComplete_H + +#include "msg/Message.h" +#include "include/types.h" + +#include +using std::map; + +class MMDSOffloadComplete : public Message { + public: + map targets_used; + + MMDSOffloadComplete() : Message(MSG_MDS_OFFLOAD_COMPLETE) {} + + MMDSOffloadComplete(map& mds_targets) : + Message(MSG_MDS_OFFLOAD_COMPLETE), + targets_used(mds_targets) {} + + const char* get_type_name() { return "mds_offload_complete"; } + + void decode_payload() { + bufferlist::iterator p = payload.begin(); + ::decode(targets_used, p); + } + + void encode_payload() { + ::encode(targets_used, payload); + } +}; + +#endif -- 2.39.5