<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) 2004-2006 <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 __MOSDSCRUB_H
#define __MOSDSCRUB_H

#include "msg/Message.h"

/*
 * instruct an OSD to scrub some or all pg(s)
 */

struct MOSDScrub : public Message {
  ceph_fsid_t fsid;
  vector<pg_t> scrub_pgs;
  bool repair;

  MOSDScrub() {}
  MOSDScrub(ceph_fsid_t& f, bool r) :
    Message(MSG_OSD_SCRUB),
    fsid(f), repair(r) {}
  MOSDScrub(ceph_fsid_t& f, vector<pg_t>& pgs, bool r) :
    Message(MSG_OSD_SCRUB),
    fsid(f), scrub_pgs(pgs), repair(r) {}

  const char *get_type_name() { return "scrub"; }
  void print(ostream& out) {
    out << "scrub(";
    if (scrub_pgs.empty())
      out << "osd";
    else
      out << scrub_pgs;
    if (repair)
      out << " repair";
    out << ")";
  }

  void encode_payload() {
    ::encode(fsid, payload);
    ::encode(scrub_pgs, payload);
    ::encode(repair, payload);
  }
  void decode_payload() {
    bufferlist::iterator p = payload.begin();
    ::decode(fsid, p);
    ::decode(scrub_pgs, p);
    ::decode(repair, p);
  }
};<commit_msg>msg: MOSDScrub has a private destructor<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) 2004-2006 <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 __MOSDSCRUB_H
#define __MOSDSCRUB_H

#include "msg/Message.h"

/*
 * instruct an OSD to scrub some or all pg(s)
 */

struct MOSDScrub : public Message {
  ceph_fsid_t fsid;
  vector<pg_t> scrub_pgs;
  bool repair;

  MOSDScrub() {}
  MOSDScrub(ceph_fsid_t& f, bool r) :
    Message(MSG_OSD_SCRUB),
    fsid(f), repair(r) {}
  MOSDScrub(ceph_fsid_t& f, vector<pg_t>& pgs, bool r) :
    Message(MSG_OSD_SCRUB),
    fsid(f), scrub_pgs(pgs), repair(r) {}
private:
  ~MOSDScrub() {}

public:
  const char *get_type_name() { return "scrub"; }
  void print(ostream& out) {
    out << "scrub(";
    if (scrub_pgs.empty())
      out << "osd";
    else
      out << scrub_pgs;
    if (repair)
      out << " repair";
    out << ")";
  }

  void encode_payload() {
    ::encode(fsid, payload);
    ::encode(scrub_pgs, payload);
    ::encode(repair, payload);
  }
  void decode_payload() {
    bufferlist::iterator p = payload.begin();
    ::decode(fsid, p);
    ::decode(scrub_pgs, p);
    ::decode(repair, p);
  }
};
{'fraction_non_alphanumeric': 0.15342277261781906, 'fraction_numerical': 0.009631922944616443, 'mean_word_length': 3.2514619883040936, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 13, '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': '5867320', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1117, 'n_words': 280}