diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-02-01 16:12:20 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-02-01 16:12:20 +1100 |
commit | 2bf91e749c149ea9f3b61f78e88ac9f5d4a369eb (patch) | |
tree | c9460d91c6a4349d6c9d4bce17badfb72d83f754 /src/meta | |
parent | 1daaf24ee3e327502a77c53ff53641bdc40d9ffb (diff) | |
parent | 6a289ecd1d253d8c95b313c6c938619eb82656c7 (diff) | |
download | mongo-2bf91e749c149ea9f3b61f78e88ac9f5d4a369eb.tar.gz |
Merge pull request #2436 from wiredtiger/WT-60
WT-60: big endian support
Diffstat (limited to 'src/meta')
-rw-r--r-- | src/meta/meta_table.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/meta/meta_table.c b/src/meta/meta_table.c index 9938cb07a5c..61cc009c983 100644 --- a/src/meta/meta_table.c +++ b/src/meta/meta_table.c @@ -9,6 +9,18 @@ #include "wt_internal.h" /* + * __wt_metadata_init -- + * Metadata initialization. + */ +void +__wt_metadata_init(WT_SESSION_IMPL *session) +{ + /* We cache the metadata file's URI hash for fast detection. */ + S2C(session)->meta_uri_hash = + __wt_hash_city64(WT_METAFILE_URI, strlen(WT_METAFILE_URI)); +} + +/* * __metadata_turtle -- * Return if a key's value should be taken from the turtle file. */ |