src/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
4 / 4
100.0%
Branches:
-
-%
Functions:
1 / 1
100.0%

storage/kv_engine/kv_engine_register.cc
Line Branch Exec Source
1 #include "storage/io_backend/force_link.h"
2 #include "storage/kv_engine/engine_composite.h"
3 #include "storage/kv_engine/engine_petkv.h"
4
5 #include "gflags/gflags.h"
6
7 extern "C" void RecStoreForceLinkFasterKVEngine();
8 extern "C" void RecStoreForceLinkDETableEngine();
9 extern "C" void RecStoreForceLinkHPSEngine();
10
11 namespace {
12 struct IOBackendLinkGuard {
13 10 IOBackendLinkGuard() {
14 10 ForceLinkIOBackends();
15 #ifdef RECSTORE_ENABLE_DETABLE_ENGINE
16 10 RecStoreForceLinkDETableEngine();
17 #endif
18 #ifdef RECSTORE_ENABLE_FASTERKV_ENGINE
19 RecStoreForceLinkFasterKVEngine();
20 #endif
21 #ifdef RECSTORE_ENABLE_HPS_ENGINE
22 RecStoreForceLinkHPSEngine();
23 #endif
24 10 }
25 };
26 const IOBackendLinkGuard kIoBackendLinkGuard;
27 } // namespace
28
29 DEFINE_int32(prefetch_method,
30 0,
31 "PetKV BatchGet prefetch method: 0=single Get loop, 1=BatchGet");
32