Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / journal / Settings.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_JOURNAL_SETTINGS_H
5 #define CEPH_JOURNAL_SETTINGS_H
6
7 #include "include/int_types.h"
8
9 namespace journal {
10
11 struct Settings {
12   double commit_interval = 5;         ///< commit position throttle (in secs)
13   uint64_t max_fetch_bytes = 0;       ///< 0 implies no limit
14   uint64_t max_payload_bytes = 0;     ///< 0 implies object size limit
15   int max_concurrent_object_sets = 0; ///< 0 implies no limit
16   std::set<std::string> whitelisted_laggy_clients;
17                                       ///< clients that mustn't be disconnected
18 };
19
20 } // namespace journal
21
22 #endif // # CEPH_JOURNAL_SETTINGS_H