Parameterize table magic number

Summary:

As we are having different types of tables and they all might share the same structure in block-based table:

[metaindex block]
[index block]
[Footer]

To be able to identify differnt types of tables, we need to parameterize the "magic number" in the `Footer`.

Test Plan:

make check
This commit is contained in:
Kai Liu
2013-12-04 15:09:41 -08:00
parent f040e536e4
commit 3a0e98d558
4 changed files with 19 additions and 9 deletions

View File

@@ -20,7 +20,6 @@ class BlockBuilder;
class BlockHandle;
class WritableFile;
class BlockBasedTableBuilder : public TableBuilder {
public:
// Create a builder that will store the contents of the table it is