sapling/eden/fs/store/KeySpaces.h
Adam Simpkins aa5e6c7295 update license headers in C++ files
Summary:
Update the copyright & license headers in C++ files to reflect the
relicensing to GPLv2

Reviewed By: wez

Differential Revision: D15487078

fbshipit-source-id: 19f24c933a64ecad0d3a692d0f8d2a38b4194b1d
2019-06-19 17:02:45 -07:00

45 lines
1.7 KiB
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#pragma once
#include "eden/fs/store/LocalStore.h"
namespace facebook {
namespace eden {
static constexpr std::
array<LocalStore::KeySpaceRecord, LocalStore::KeySpace::End>
kKeySpaceRecords = {
LocalStore::KeySpaceRecord{LocalStore::BlobFamily,
LocalStore::Persistence::Ephemeral,
"blob"},
LocalStore::KeySpaceRecord{
LocalStore::BlobMetaDataFamily,
LocalStore::Persistence::Ephemeral,
"blobmeta",
},
// If the trees were imported from a flatmanifest, we cannot delete
// them. See test_contents_are_the_same_if_handle_is_held_open when
// running against a flatmanifest repository.
LocalStore::KeySpaceRecord{LocalStore::TreeFamily,
LocalStore::Persistence::Persistent,
"tree"},
// Proxy hashes are required to fetch objects from hg from a hash.
// Deleting them breaks re-importing after an inode is unloaded.
LocalStore::KeySpaceRecord{LocalStore::HgProxyHashFamily,
LocalStore::Persistence::Persistent,
"hgproxyhash"},
LocalStore::KeySpaceRecord{LocalStore::HgCommitToTreeFamily,
LocalStore::Persistence::Ephemeral,
"hgcommit2tree"}};
} // namespace eden
} // namespace facebook