Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rocksdb/db.h: GetDbIdentity comment: ID comes from MANIFEST #13193

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/rocksdb/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -1989,15 +1989,15 @@ class DB {

virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); }

// Returns the unique ID which is read from IDENTITY file during the opening
// of database by setting in the identity variable
// Returns Status::OK if identity could be set properly
// Copies the database's unique ID into identity. The ID is read from the
// MANIFEST file when opening the database. See the write_dbid_to_manifest
// option for details. Returns Status::OK if identity was set.
virtual Status GetDbIdentity(std::string& identity) const = 0;

// Return a unique identifier for each DB object that is opened
// This DB session ID should be unique among all open DB instances on all
// hosts, and should be unique among re-openings of the same or other DBs.
// (Two open DBs have the same identity from other function GetDbIdentity when
// (Two open DBs have the same identity from GetDbIdentity when
// one is physically copied from the other.)
virtual Status GetDbSessionId(std::string& session_id) const = 0;

Expand Down
Loading