<commit_before>// -*- 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 <NAME> <<EMAIL>>
 *
 * 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 __MMDSLoadTargets_H
#define __MMDSLoadTargets_H

#include "msg/Message.h"
#include "include/types.h"

#include <map>
using std::map;

class MMDSLoadTargets : public Message {
 public:
  __u64 global_id;
  set<int32_t> targets;

  MMDSLoadTargets() : Message(MSG_MDS_OFFLOAD_TARGETS) {}

  MMDSLoadTargets(__u64 g, set<int32_t>& mds_targets) :
    Message(MSG_MDS_OFFLOAD_TARGETS),
    global_id(g), targets(mds_targets) {}

  const char* get_type_name() { return "mds_load_targets"; }
  void print(ostream& o) {
    o << "mds_load_targets(" << global_id << " " << targets << ")";
  }

  void decode_payload() {
    bufferlist::iterator p = payload.begin();
    ::decode(global_id, p);
    ::decode(targets, p);
  }

  void encode_payload() {
    ::encode(global_id, payload);
    ::encode(targets, payload);
  }
};

#endif<commit_msg>mds: fix mds_export_targets message parent<commit_after>// -*- 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 <NAME> <<EMAIL>>
 *
 * 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 __MMDSLoadTargets_H
#define __MMDSLoadTargets_H

#include "msg/Message.h"
#include "messages/PaxosServiceMessage.h"
#include "include/types.h"

#include <map>
using std::map;

class MMDSLoadTargets : public PaxosServiceMessage {
 public:
  __u64 global_id;
  set<int32_t> targets;

  MMDSLoadTargets() : PaxosServiceMessage(MSG_MDS_OFFLOAD_TARGETS, 0) {}

  MMDSLoadTargets(__u64 g, set<int32_t>& mds_targets) :
    PaxosServiceMessage(MSG_MDS_OFFLOAD_TARGETS, 0),
    global_id(g), targets(mds_targets) {}

  const char* get_type_name() { return "mds_load_targets"; }
  void print(ostream& o) {
    o << "mds_load_targets(" << global_id << " " << targets << ")";
  }

  void decode_payload() {
    bufferlist::iterator p = payload.begin();
    paxos_decode(p);
    ::decode(global_id, p);
    ::decode(targets, p);
  }

  void encode_payload() {
    paxos_encode();
    ::encode(global_id, payload);
    ::encode(targets, payload);
  }
};

#endif
{'fraction_non_alphanumeric': 0.13977695167286244, 'fraction_numerical': 0.01412639405204461, 'mean_word_length': 4.1257142857142854, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5425432', 'n_tokens_mistral': 1007, 'n_tokens_neox': 947, 'n_words': 229}