diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2018-01-27 11:52:34 +0000 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2018-01-27 11:52:34 +0000 |
commit | e3a03da2bcaed43a06b49b4d22f462804503ec14 (patch) | |
tree | 8f21d9fff7cfb0cb205f1116a8d41f11838d7fac /storage/rocksdb/event_listener.cc | |
parent | 2da191791260d5ca3adcb6857404912d52926ee2 (diff) | |
parent | 445e518bc7aa5f4bb48d98e798905c9c0b0ce673 (diff) | |
download | mariadb-git-e3a03da2bcaed43a06b49b4d22f462804503ec14.tar.gz |
Merge from merge-myrocks:
commit 445e518bc7aa5f4bb48d98e798905c9c0b0ce673
Author: Sergei Petrunia <psergey@askmonty.org>
Date: Sat Jan 27 10:18:20 2018 +0000
Copy of
commit f8f364b47f2784f16b401f27658f1c16eaf348ec
Author: Jay Edgar <jkedgar@fb.com>
Date: Tue Oct 17 15:19:31 2017 -0700
Add a hashed, hierarchical, wheel timer implementation
Summary:
In order to implement idle timeouts on detached sessions we need something inside MySQL that is lightweight and can handle calling events in the future wi
By default the timers are grouped into 10ms buckets (the 'hashed' part), though the size of the buckets is configurable at the creation of the timer. Eac
Reviewed By: djwatson
Differential Revision: D6199806
fbshipit-source-id: 5e1590f
Diffstat (limited to 'storage/rocksdb/event_listener.cc')
-rw-r--r-- | storage/rocksdb/event_listener.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/storage/rocksdb/event_listener.cc b/storage/rocksdb/event_listener.cc index 5854da54210..1a621b5df4b 100644 --- a/storage/rocksdb/event_listener.cc +++ b/storage/rocksdb/event_listener.cc @@ -83,4 +83,14 @@ void Rdb_event_listener::OnExternalFileIngested( DBUG_ASSERT(db != nullptr); update_index_stats(info.table_properties); } + +void Rdb_event_listener::OnBackgroundError( + rocksdb::BackgroundErrorReason reason, rocksdb::Status *status) { + rdb_log_status_error(*status, "Error detected in background"); + sql_print_error("RocksDB: BackgroundErrorReason: %d", (int)reason); + if (status->IsCorruption()) { + rdb_persist_corruption_marker(); + abort(); + } +} } // namespace myrocks |