Skip to content

Commit

Permalink
Clarify io_activity (#11427)
Browse files Browse the repository at this point in the history
Summary:
Document ReadOptions::io_activity as internal-use-only. And to keep kUnknown as last (and why).

Pull Request resolved: #11427

Test Plan: comments only

Reviewed By: hx235

Differential Revision: D45576986

Pulled By: pdillinger

fbshipit-source-id: aae15aa22ea91370c2b7366154e45d4b91a79ad2
  • Loading branch information
pdillinger authored and facebook-github-bot committed May 4, 2023
1 parent a11f1e1 commit a5909f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/rocksdb/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ class Env : public Customizable {
kFlush = 0,
kCompaction = 1,
kDBOpen = 2,
kUnknown,
kUnknown, // Keep last for easy array of non-unknowns
};

// Arrange to run "(*function)(arg)" once in a background thread, in
Expand Down
1 change: 1 addition & 0 deletions include/rocksdb/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,7 @@ struct ReadOptions {
// Default: true
bool optimize_multiget_for_io;

// ** For RocksDB internal use only **
Env::IOActivity io_activity;

ReadOptions();
Expand Down

0 comments on commit a5909f8

Please sign in to comment.