#include <map>
#include <set>
-using namespace std;
#include "include/types.h"
#include "PaxosService.h"
+#include "common/config_fwd.h"
#include "common/LogEntry.h"
#include "include/str_map.h"
-class MMonCommand;
class MLog;
static const string LOG_META_CHANNEL = "$channel";
// propose pending update to peers
void encode_pending(MonitorDBStore::TransactionRef t) override;
void encode_full(MonitorDBStore::TransactionRef t) override;
- version_t get_trim_to() override;
+ version_t get_trim_to() const override;
bool preprocess_query(MonOpRequestRef op) override; // true if processed.
bool prepare_update(MonOpRequestRef op) override;
bool preprocess_command(MonOpRequestRef op);
bool prepare_command(MonOpRequestRef op);
- bool _create_sub_summary(MLog *mlog, int level);
void _create_sub_incremental(MLog *mlog, int level, version_t sv);
public:
void init() override {
generic_dout(10) << "LogMonitor::init" << dendl;
- g_conf->add_observer(this);
+ g_conf().add_observer(this);
update_log_channels();
}
int sub_name_to_id(const string& n);
void on_shutdown() override {
- g_conf->remove_observer(this);
+ g_conf().remove_observer(this);
}
const char **get_tracked_conf_keys() const override {
};
return KEYS;
}
- void handle_conf_change(const struct md_config_t *conf,
+ void handle_conf_change(const ConfigProxy& conf,
const std::set<std::string> &changed) override;
};
#endif