summaryrefslogtreecommitdiff
path: root/storage/rocksdb/rdb_cf_options.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2017-02-06 17:39:08 +0000
committerSergei Petrunia <psergey@askmonty.org>2017-02-06 17:39:08 +0000
commit7468ccfadf27a0c5f87c8909ee8514bdd52dc4a7 (patch)
treeb77bc71584e1fe8d727b04a1577dd612da7b9fdd /storage/rocksdb/rdb_cf_options.h
parentcfb59f3196aac1b41cdda79952031dcc64042914 (diff)
downloadmariadb-git-7468ccfadf27a0c5f87c8909ee8514bdd52dc4a7.tar.gz
Copy of
commit d1bb19b8f751875472211312c8e810143a7ba4b6 Author: Manuel Ung <mung@fb.com> Date: Fri Feb 3 11:50:34 2017 -0800 Add cardinality stats to information schema Summary: This adds cardinality stats to the INFORMATION_SCHEMA.ROCKSDB_INDEX_FILE_MAP table. This is the only missing user collected properties from SST files that we don't expose, which is useful for debugging cardinality bugs. Reviewed By: hermanlee Differential Revision: D4509156 fbshipit-source-id: 2d3918a
Diffstat (limited to 'storage/rocksdb/rdb_cf_options.h')
-rw-r--r--storage/rocksdb/rdb_cf_options.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/storage/rocksdb/rdb_cf_options.h b/storage/rocksdb/rdb_cf_options.h
index 8151d907eb7..1cd80a131ad 100644
--- a/storage/rocksdb/rdb_cf_options.h
+++ b/storage/rocksdb/rdb_cf_options.h
@@ -38,47 +38,47 @@ namespace myrocks {
and also there is a default value which applies to column
families not found in the map.
*/
-class Rdb_cf_options
-{
- public:
- Rdb_cf_options(const Rdb_cf_options&) = delete;
- Rdb_cf_options& operator=(const Rdb_cf_options&) = delete;
+class Rdb_cf_options {
+public:
+ Rdb_cf_options(const Rdb_cf_options &) = delete;
+ Rdb_cf_options &operator=(const Rdb_cf_options &) = delete;
Rdb_cf_options() = default;
- void get(const std::string &cf_name, rocksdb::ColumnFamilyOptions* const opts);
+ void get(const std::string &cf_name,
+ rocksdb::ColumnFamilyOptions *const opts);
- bool init(
- const rocksdb::BlockBasedTableOptions& table_options,
- std::shared_ptr<rocksdb::TablePropertiesCollectorFactory> prop_coll_factory,
- const char* const default_cf_options,
- const char* const override_cf_options);
+ bool init(const rocksdb::BlockBasedTableOptions &table_options,
+ std::shared_ptr<rocksdb::TablePropertiesCollectorFactory>
+ prop_coll_factory,
+ const char *const default_cf_options,
+ const char *const override_cf_options);
- const rocksdb::ColumnFamilyOptions& get_defaults() const {
+ const rocksdb::ColumnFamilyOptions &get_defaults() const {
return m_default_cf_opts;
}
- static const rocksdb::Comparator* get_cf_comparator(
- const std::string& cf_name);
+ static const rocksdb::Comparator *
+ get_cf_comparator(const std::string &cf_name);
- void get_cf_options(
- const std::string &cf_name,
- rocksdb::ColumnFamilyOptions* const opts) __attribute__((__nonnull__));
+ void get_cf_options(const std::string &cf_name,
+ rocksdb::ColumnFamilyOptions *const opts)
+ MY_ATTRIBUTE((__nonnull__));
- private:
+private:
bool set_default(const std::string &default_config);
bool set_override(const std::string &overide_config);
/* Helper string manipulation functions */
- static void skip_spaces(const std::string& input, size_t* const pos);
- static bool find_column_family(const std::string& input, size_t* const pos,
- std::string* const key);
- static bool find_options(const std::string& input, size_t* const pos,
- std::string* const options);
- static bool find_cf_options_pair(const std::string& input, size_t* const pos,
- std::string* const cf,
- std::string* const opt_str);
-
- private:
+ static void skip_spaces(const std::string &input, size_t *const pos);
+ static bool find_column_family(const std::string &input, size_t *const pos,
+ std::string *const key);
+ static bool find_options(const std::string &input, size_t *const pos,
+ std::string *const options);
+ static bool find_cf_options_pair(const std::string &input, size_t *const pos,
+ std::string *const cf,
+ std::string *const opt_str);
+
+private:
static Rdb_pk_comparator s_pk_comparator;
static Rdb_rev_comparator s_rev_pk_comparator;
@@ -93,4 +93,4 @@ class Rdb_cf_options
rocksdb::ColumnFamilyOptions m_default_cf_opts;
};
-} // namespace myrocks
+} // namespace myrocks