Skip to content

Commit

Permalink
Add EXPERIMENTAL comments about XXOptions::io_activity (facebook#11926)
Browse files Browse the repository at this point in the history
Summary:
Context/Summary: this option is experimental right now

Pull Request resolved: facebook#11926

Test Plan: no code change

Reviewed By: jaykorean

Differential Revision: D49985000

Pulled By: hx235

fbshipit-source-id: a5b439ed35e3d6bb04c125f222ac29cd3842d1a1
  • Loading branch information
hx235 authored and facebook-github-bot committed Oct 6, 2023
1 parent 2dc63c8 commit 21a1236
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/rocksdb/file_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ struct IOOptions {
// directories and list only files in GetChildren API.
bool do_not_recurse;

// EXPERIMENTAL
Env::IOActivity io_activity = Env::IOActivity::kUnknown;

IOOptions() : IOOptions(false) {}
Expand Down
6 changes: 5 additions & 1 deletion include/rocksdb/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -1752,9 +1752,13 @@ struct ReadOptions {

// *** END options only relevant to iterators or scans ***

// ** For RocksDB internal use only **
// *** BEGIN options for RocksDB internal use only ***

// EXPERIMENTAL
Env::IOActivity io_activity = Env::IOActivity::kUnknown;

// *** END options for RocksDB internal use only ***

ReadOptions() {}
ReadOptions(bool _verify_checksums, bool _fill_cache);
explicit ReadOptions(Env::IOActivity _io_activity);
Expand Down

0 comments on commit 21a1236

Please sign in to comment.