Add GetID to ColumnFamilyHandle

Summary:
Expose GetID to ColumnFamilyHandle interface so that we can save column
family data by id instead of name.

Test Plan: Testing in MySQL on Rocks.

Reviewers: sdong, igor

Reviewed By: igor

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D32943
This commit is contained in:
Jonah Cohen 2015-02-05 08:26:33 -08:00
parent 181191a1e4
commit 9a52e06a02

View file

@ -44,6 +44,7 @@ class ColumnFamilyHandle {
public:
virtual ~ColumnFamilyHandle() {}
virtual const std::string& GetName() const = 0;
virtual uint32_t GetID() const = 0;
};
extern const std::string kDefaultColumnFamilyName;