Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Nov 20, 2023
1 parent ef14b9e commit 370dd69
Show file tree
Hide file tree
Showing 27 changed files with 13 additions and 29 deletions.
3 changes: 2 additions & 1 deletion src/geo/bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ set(MY_SRC_SEARCH_MODE "GLOB")

set(MY_PROJ_LIBS
pegasus_geo_lib
s2testing
absl_log_internal_message
absl_log_internal_check_op
s2
pegasus_client_static
RocksDB::rocksdb
Expand Down
6 changes: 2 additions & 4 deletions src/geo/bench/bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <s2/s1angle.h>
#include <s2/s2latlng.h>
#include <s2/s2latlng_rect.h>
#include <s2/s2testing.h>
#include <s2/third_party/absl/base/port.h>
#include <stdint.h>
#include <atomic>
#include <iostream>
Expand Down Expand Up @@ -95,7 +93,7 @@ int main(int argc, char **argv)
const pegasus::geo::latlng_codec &codec = my_geo.get_codec();
for (int i = 0; i < data_count; ++i) {
std::string value;
S2LatLng latlng(S2Testing::SamplePoint(rect));
S2LatLng latlng;//(S2Testing::SamplePoint(rect));
bool ok = codec.encode_to_value(latlng.lat().degrees(), latlng.lng().degrees(), value);
CHECK(ok, "");
int ret = my_geo.set(std::to_string(i), "", value, 1000);
Expand All @@ -118,7 +116,7 @@ int main(int argc, char **argv)

// test search_radial by lat & lng
for (int i = 0; i < test_count; ++i) {
S2LatLng latlng(S2Testing::SamplePoint(rect));
S2LatLng latlng;//(S2Testing::SamplePoint(rect));

uint64_t start_nanos = env->NowNanos();
my_geo.async_search_radial(
Expand Down
3 changes: 2 additions & 1 deletion src/geo/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ set(MY_SRC_SEARCH_MODE "GLOB")

set(MY_PROJ_LIBS
pegasus_geo_lib
s2testing
absl_log_internal_message
absl_log_internal_check_op
s2
pegasus_client_static
dsn_utils
Expand Down
4 changes: 1 addition & 3 deletions src/geo/test/geo_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#include <s2/s2cell_id.h>
#include <s2/s2earth.h>
#include <s2/s2latlng.h>
#include <s2/s2testing.h>
#include <s2/third_party/absl/base/port.h>
#include <stdint.h>
#include <list>
#include <memory>
Expand Down Expand Up @@ -584,7 +582,7 @@ TEST_F(geo_client_test, large_cap)
S2Cap cap;
gen_search_cap(S2LatLng::FromDegrees(lat_degrees, lng_degrees), radius_m, cap);
for (int i = 0; i < test_data_count; ++i) {
S2LatLng latlng(S2Testing::SamplePoint(cap));
S2LatLng latlng;//(S2Testing::SamplePoint(cap));
ASSERT_TRUE(cap.Contains(latlng.ToPoint()));
std::string id = std::to_string(i);
std::string value = id + "|2018-06-05 12:00:00|2018-06-05 13:00:00|abcdefg|" +
Expand Down
1 change: 0 additions & 1 deletion src/geo/test/latlng_codec_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <gtest/gtest.h>
#include <s2/s1angle.h>
#include <s2/s2latlng.h>
#include <s2/third_party/absl/base/port.h>
#include <string>

#include "geo/lib/latlng_codec.h"
Expand Down
2 changes: 2 additions & 0 deletions src/redis_protocol/proxy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ set(MY_PROJ_LIBS pegasus.rproxylib
pegasus_geo_lib
pegasus_reporter
event
absl_log_internal_message
absl_log_internal_check_op
s2
pegasus_client_static
)
Expand Down
1 change: 0 additions & 1 deletion src/redis_protocol/proxy/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include <pegasus/version.h>
#include <s2/third_party/absl/base/port.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
Expand Down
2 changes: 2 additions & 0 deletions src/redis_protocol/proxy_ut/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ set(MY_BOOST_LIBS Boost::system Boost::filesystem Boost::regex)
set(MY_PROJ_LIBS pegasus.rproxylib
pegasus_base
pegasus_geo_lib
absl_log_internal_message
absl_log_internal_check_op
s2
pegasus_client_static
gtest
Expand Down
1 change: 0 additions & 1 deletion src/redis_protocol/proxy_ut/redis_proxy_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
// IWYU pragma: no_include <gtest/gtest-test-part.h>
#include <gtest/gtest.h>
#include <gtest/gtest_prod.h>
#include <s2/third_party/absl/base/port.h>
#include <string.h>
#include <chrono>
#include <memory>
Expand Down
1 change: 0 additions & 1 deletion src/server/hotspot_partition_calculator.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#pragma once

#include <s2/third_party/absl/base/port.h>
#include <stdint.h>
#include <array>
#include <list>
Expand Down
1 change: 0 additions & 1 deletion src/server/info_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#pragma once

#include <s2/third_party/absl/base/port.h>
#include <stdint.h>
#include <stdlib.h>
// IWYU pragma: no_include <bits/std_abs.h>
Expand Down
1 change: 0 additions & 1 deletion src/server/info_collector_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#pragma once

#include <s2/third_party/absl/base/port.h>
#include <string>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion src/server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <pegasus/git_commit.h>
#include <pegasus/version.h>
#include <s2/third_party/absl/base/port.h>
#include <unistd.h>
#include <cstdio>
#include <memory>
Expand Down
2 changes: 2 additions & 0 deletions src/shell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ set(MY_PROJ_LIBS
PocoXML
pegasus_geo_lib
RocksDB::rocksdb
absl_log_internal_message
absl_log_internal_check_op
s2
hdfs
)
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/bulk_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
// IWYU pragma: no_include <ext/alloc_traits.h>
#include <fmt/core.h>
#include <getopt.h>
#include <s2/third_party/absl/base/port.h>
#include <stdio.h>
#include <algorithm>
#include <cstdint>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/cold_backup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <boost/lexical_cast.hpp>
#include <getopt.h>
#include <inttypes.h>
#include <s2/third_party/absl/base/port.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/data_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <limits.h>
#include <pegasus/error.h>
#include <rocksdb/statistics.h>
#include <s2/third_party/absl/base/port.h>
#include <stdio.h>
#include <algorithm>
#include <atomic>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <rocksdb/sst_dump_tool.h>
#include <rocksdb/status.h>
#include <rocksdb/utilities/ldb_cmd.h>
#include <s2/third_party/absl/base/port.h>
#include <stdint.h>
#include <stdio.h>
#include <ctime>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/detect_hotkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
// under the License.

#include <fmt/core.h>
#include <s2/third_party/absl/base/port.h>
#include <stdio.h>
#include <memory>
#include <set>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/duplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include <fmt/core.h>
#include <s2/third_party/absl/base/port.h>
#include <stdint.h>
#include <stdio.h>
#include <iostream>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/global_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* under the License.
*/

#include <s2/third_party/absl/base/port.h>
#include <stdio.h>
#include <string>

Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/node_management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

// IWYU pragma: no_include <bits/getopt_core.h>
#include <getopt.h>
#include <s2/third_party/absl/base/port.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/rebalance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

// IWYU pragma: no_include <bits/getopt_core.h>
#include <getopt.h>
#include <s2/third_party/absl/base/port.h>
#include <stdio.h>
#include <algorithm>
#include <iostream>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/recovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
// IWYU pragma: no_include <bits/getopt_core.h>
#include <boost/algorithm/string/trim.hpp>
#include <getopt.h>
#include <s2/third_party/absl/base/port.h>
#include <stdio.h>
#include <algorithm>
#include <fstream>
Expand Down
1 change: 0 additions & 1 deletion src/shell/commands/table_management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
// IWYU pragma: no_include <bits/std_abs.h>
#include <fmt/core.h>
#include <getopt.h>
#include <s2/third_party/absl/base/port.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
Expand Down
1 change: 0 additions & 1 deletion src/shell/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <ctype.h>
#include <pegasus/version.h>
#include <s2/third_party/absl/base/port.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion src/test/function_test/base_api/test_copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
// IWYU pragma: no_include <gtest/gtest-test-part.h>
#include <gtest/gtest.h>
#include <limits.h>
#include <s2/third_party/absl/base/port.h>
#include <string.h>
#include <time.h>
#include <algorithm>
Expand Down

0 comments on commit 370dd69

Please sign in to comment.