diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2017-03-11 20:00:08 +0000 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2017-03-11 20:00:08 +0000 |
commit | 5c1c2f67ec9373f55f9b69bdaf4adad416e4788b (patch) | |
tree | 00aaae6bea75bbdb9104d9e0588ab8f4896eecaf /storage/rocksdb/rdb_sst_info.h | |
parent | fd39f25ca70d548a4ec1ed36c4c6c30072d4e47b (diff) | |
parent | 65d01da29c03c44f3c059a999c7c1cc6e001ead8 (diff) | |
download | mariadb-git-5c1c2f67ec9373f55f9b69bdaf4adad416e4788b.tar.gz |
Merge branch 'merge-myrocks' of github.com:MariaDB/mergetrees into bb-10.2-mariarocks
Manually resolved a few conflicts
Diffstat (limited to 'storage/rocksdb/rdb_sst_info.h')
-rw-r--r-- | storage/rocksdb/rdb_sst_info.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/rocksdb/rdb_sst_info.h b/storage/rocksdb/rdb_sst_info.h index d7f05e8dc7c..4211ec6340d 100644 --- a/storage/rocksdb/rdb_sst_info.h +++ b/storage/rocksdb/rdb_sst_info.h @@ -17,6 +17,7 @@ #pragma once /* C++ standard header files */ +#include <atomic> #include <condition_variable> #include <mutex> #include <queue> @@ -55,6 +56,7 @@ public: rocksdb::Status open(); rocksdb::Status put(const rocksdb::Slice &key, const rocksdb::Slice &value); rocksdb::Status commit(); + const std::string get_name() const { return m_name; } }; class Rdb_sst_info { @@ -70,6 +72,7 @@ private: uint32_t m_sst_count; std::string m_error_msg; std::string m_prefix; + static std::atomic<uint64_t> m_prefix_counter; static std::string m_suffix; #if defined(RDB_SST_INFO_USE_THREAD) std::queue<Rdb_sst_file *> m_queue; @@ -83,7 +86,7 @@ private: int open_new_sst_file(); void close_curr_sst_file(); - void set_error_msg(const std::string &msg); + void set_error_msg(const std::string &sst_file_name, const std::string &msg); #if defined(RDB_SST_INFO_USE_THREAD) void run_thread(); |