Skip to content

Commit 0136d7c

Browse files
generatedunixname226714639793621facebook-github-bot
authored andcommitted
fbcode/cachelib/
Reviewed By: iahs Differential Revision: D44705244 fbshipit-source-id: 0ed85996ea63c8287408c534d93c7ab2b2ae64dc
1 parent 15f00ab commit 0136d7c

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

cachelib/experimental/objcache/tests/ThriftCustomAllocator.thrift

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,8 @@ struct UseSimpleCustomAllocator {
2424

2525
// A template type like map needs to use "cpp.template" to specify a replacement template
2626
1: map<
27-
// A concrete type like string needs to use "cpp.type" to specify a replacement type
28-
string (
29-
cpp.use_allocator,
30-
cpp.type = "facebook::cachelib::objcache::test::TestString",
31-
),
32-
string (
33-
cpp.use_allocator,
34-
cpp.type = "facebook::cachelib::objcache::test::TestString",
35-
)
27+
string_cpptype_facebookcachelibobjcachetestTestString_cppuse_allocator_1_607,
28+
string_cpptype_facebookcachelibobjcachetestTestString_cppuse_allocator_1_607
3629
> (
3730
cpp.use_allocator,
3831
cpp.template = "facebook::cachelib::objcache::test::TestMap",
@@ -55,10 +48,7 @@ struct UseSimpleCustomAllocator {
5548
union UnionWithCustomAllocator {
5649
1: map<
5750
i32,
58-
string (
59-
cpp.use_allocator,
60-
cpp.type = "facebook::cachelib::objcache::test::TestString",
61-
)
51+
string_cpptype_facebookcachelibobjcachetestTestString_cppuse_allocator_1_607
6252
> (
6353
cpp.use_allocator,
6454
cpp.template = "facebook::cachelib::objcache::test::TestMap",
@@ -108,3 +98,9 @@ struct UseTwoF14Maps {
10898
} (
10999
cpp.allocator = "facebook::cachelib::objcache::test::TestF14TemplateAllocator<std::pair<const int32_t, int32_t>>",
110100
)
101+
102+
// The following were automatically generated and may benefit from renaming.
103+
typedef string (
104+
cpp.type = 'facebook::cachelib::objcache::test::TestString',
105+
cpp.use_allocator = '1',
106+
) string_cpptype_facebookcachelibobjcachetestTestString_cppuse_allocator_1_607

0 commit comments

Comments
 (0)