Skip to content

Commit e38e717

Browse files
Split FsdbCowStorage into state and stats storage
Summary: as titled Differential Revision: D75559770 fbshipit-source-id: d9602d960a328bda5fecc6cdf30b36f7ec776bc7
1 parent 6c853b4 commit e38e717

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

cmake/fsdb/FsdbOperInstantiations.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ target_link_libraries(fsdb_cow_root_path_visitor
2525
)
2626

2727
add_library(fsdb_cow_storage
28-
fboss/fsdb/oper/instantiations/FsdbCowStorage.cpp
28+
fboss/fsdb/oper/instantiations/FsdbCowStateStorage.cpp
29+
fboss/fsdb/oper/instantiations/FsdbCowStatsStorage.cpp
2930
)
3031

3132
target_link_libraries(fsdb_cow_storage

fboss/fsdb/oper/instantiations/BUCK

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ cpp_library(
3535

3636
cpp_library(
3737
name = "fsdb_cow_storage",
38-
srcs = ["FsdbCowStorage.cpp"],
38+
srcs = [
39+
"FsdbCowStateStorage.cpp",
40+
"FsdbCowStatsStorage.cpp",
41+
],
3942
headers = ["FsdbCowStorage.h"],
4043
exported_deps = [
4144
":fsdb_cow_root",

fboss/fsdb/oper/instantiations/FsdbCowStorage.cpp renamed to fboss/fsdb/oper/instantiations/FsdbCowStateStorage.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ namespace facebook::fboss::fsdb {
1414

1515
template class CowStorage<FsdbOperStateRoot>;
1616

17-
template class CowStorage<FsdbOperStatsRoot>;
18-
1917
} // namespace facebook::fboss::fsdb
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2004-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
*/
10+
11+
#include "fboss/fsdb/oper/instantiations/FsdbCowStorage.h"
12+
13+
namespace facebook::fboss::fsdb {
14+
15+
template class CowStorage<FsdbOperStatsRoot>;
16+
17+
} // namespace facebook::fboss::fsdb

0 commit comments

Comments
 (0)