]>
git.proxmox.com Git - ceph.git/blob - ceph/src/mds/events/EPurged.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
15 #ifndef CEPH_MDS_EPURGE_H
16 #define CEPH_MDS_EPURGE_H
18 #include "common/config.h"
19 #include "include/types.h"
21 #include "../LogEvent.h"
23 class EPurged
: public LogEvent
{
26 interval_set
<inodeno_t
> inos
;
27 version_t inotablev
{0};
28 LogSegment::seq_t seq
;
30 EPurged() : LogEvent(EVENT_PURGED
) {
32 EPurged(interval_set
<inodeno_t
> i
, version_t iv
, LogSegment::seq_t _seq
= 0) :
33 LogEvent(EVENT_PURGED
), inos(std::move(i
)), inotablev(iv
), seq(_seq
) {
35 void encode(bufferlist
& bl
, uint64_t features
) const override
;
36 void decode(bufferlist::const_iterator
& bl
) override
;
37 void dump(Formatter
*f
) const override
;
38 void print(ostream
& out
) const override
{
41 out
<< "Eurge complete";
43 out
<< "Eurge inodes ";
46 void update_segment() override
;
47 void replay(MDSRank
*mds
) override
;
49 WRITE_CLASS_ENCODER_FEATURES(EPurged
)
51 #endif // CEPH_MDS_EPURGE_H