mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
a0dd2bbc49
Summary: To enable consistent and simple configuration of a clone configuration and preferences around cloning: * Refactored code to simplify InodeCatalogTypes (aka Overlay types) to three: Legacy, Sqlite, and InMemory * Added new InodeCatalogOptions to support different variants for each type (currently only Sqlite has options) This will allow CLI to read the users preferences from EdenConfig for overlay type, to control the defaults via Chef + GK, and to persist the configuration in CheckoutConfig. This change better unifies the settings that already existed in EdenConfig and CheckoutConfig. Reviewed By: genevievehelsel, kmancini Differential Revision: D48014211 fbshipit-source-id: 56e8f00d1680c717e736c84e5b5c24fb02e36b5d
20 lines
609 B
C++
20 lines
609 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#include "eden/fs/config/InodeCatalogOptions.h"
|
|
|
|
namespace facebook::eden {
|
|
|
|
const InodeCatalogOptions::NameTable InodeCatalogOptions::table{
|
|
{INODE_CATALOG_DEFAULT, "INODE_CATALOG_DEFAULT"},
|
|
{INODE_CATALOG_UNSAFE_IN_MEMORY, "INODE_CATALOG_UNSAFE_IN_MEMORY"},
|
|
{INODE_CATALOG_SYNCHRONOUS_OFF, "INODE_CATALOG_SYNCHRONOUS_OFF"},
|
|
{INODE_CATALOG_BUFFERED, "INODE_CATALOG_BUFFERED"},
|
|
};
|
|
|
|
} // namespace facebook::eden
|