Skip to content

Commit 4e55736

Browse files
committed
Several changes:
- CMake: We can get rid of these policies, right? - Updated bots list - plain/ajax sessions ratio: clarify what the ratio actually means
1 parent 56f56a5 commit 4e55736

File tree

5 files changed

+30
-27
lines changed

5 files changed

+30
-27
lines changed

CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
22

33
SET(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE true)
44

5-
IF(COMMAND CMAKE_POLICY)
6-
CMAKE_POLICY(SET CMP0002 OLD)
7-
CMAKE_POLICY(SET CMP0003 OLD)
8-
CMAKE_POLICY(SET CMP0005 OLD)
9-
if(POLICY CMP0022)
10-
# Stops CMake from warning about CMP0022, even though we don't actually use
11-
# the LINK_INTERFACE_LIBRARIES or INTERFACE_LINK_LIBRARIES (only indirectly
12-
# through PUBLIC/PRIVATE in TARGET_LINK_LIBRARIES)
13-
CMAKE_POLICY(SET CMP0022 NEW)
14-
endif(POLICY CMP0022)
15-
ENDIF(COMMAND CMAKE_POLICY)
16-
175
PROJECT(WT)
186

197
SET(CMAKE_MODULE_PATH

doc/main

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,10 +782,13 @@ appRoot=C:\Program Files\MyApplications\AppRoot
782782
<user-agent>.*Bot.*</user-agent>
783783
<user-agent>.*ia_archiver.*</user-agent>
784784
<user-agent>.*Twiceler.*</user-agent>
785-
<user-agent>Yandex.*</user-agent>
785+
<user-agent>.*Yandex.*</user-agent>
786786
<user-agent>.*Nutch.*</user-agent>
787787
<user-agent>.*MJ12bot.*</user-agent>
788-
<user-agent>Baiduspider.*</user-agent>
788+
<user-agent>.*Baiduspider.*</user-agent>
789+
<user-agent>.*Ezooms.*</user-agent>
790+
<user-agent>.*Sogou web spider.*</user-agent>
791+
<user-agent>.*AhrefsBot.*</user-agent>
789792
</user-agents>
790793
\endcode
791794

examples/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
SET(EXAMPLES_WT_LIB wt)
3131
SET(EXAMPLES_WTDBO_LIB wtdbo)
3232
SET(EXAMPLES_WTDBOSQLITE3_LIB wtdbosqlite3)
33+
SET(EXAMPLES_WTDBOPOSTGRES_LIB wtdbopostgres)
34+
SET(EXAMPLES_WTDBOMYSQL_LIB wtdbomysql)
3335

3436
IF("${CMAKE_CURRENT_LIST_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
3537
IF(WIN32)
@@ -58,6 +60,8 @@ IF("${CMAKE_CURRENT_LIST_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
5860
SET(EXAMPLES_WT_LIB Wt::Wt)
5961
SET(EXAMPLES_WTDBO_LIB Wt::Dbo)
6062
SET(EXAMPLES_WTDBOSQLITE3_LIB Wt::DboSqlite3)
63+
SET(EXAMPLES_WTDBOPOSTGRES_LIB Wt::DboPostgres)
64+
SET(EXAMPLES_WTDBOMYSQL_LIB Wt::DboMySQL)
6165

6266
INCLUDE_DIRECTORIES($(CMAKE_SOURCE_DIR)/../../../include)
6367
LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/../../../lib)

examples/te-benchmark/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ INCLUDE_DIRECTORIES(${WT_SOURCE_DIR}/src)
99

1010
IF(ENABLE_MYSQL AND MYSQL_FOUND)
1111
WT_ADD_EXAMPLE(te-benchmark.wt benchmark.cpp)
12-
TARGET_LINK_LIBRARIES(te-benchmark.wt
13-
debug wtdbod optimized wtdbo
14-
debug wtdbomysqld optimized wtdbomysql)
12+
TARGET_LINK_LIBRARIES(te-benchmark.wt ${EXAMPLES_WTDBO_LIB} ${EXAMPLES_WTDBOMYSQL_LIB})
1513
ENDIF(ENABLE_MYSQL AND MYSQL_FOUND)
1614

1715
IF(ENABLE_POSTGRES AND POSTGRES_FOUND)
1816
WT_ADD_EXAMPLE(te-benchmark-pg.wt benchmark.cpp)
1917
TARGET_COMPILE_DEFINITIONS(te-benchmark-pg.wt PRIVATE BENCHMARK_USE_POSTGRES)
20-
TARGET_LINK_LIBRARIES(te-benchmark-pg.wt
21-
debug wtdbod optimized wtdbo
22-
debug wtdbopostgresd optimized wtdbopostgres)
18+
TARGET_LINK_LIBRARIES(te-benchmark-pg.wt ${EXAMPLES_WTDBO_LIB} ${EXAMPLES_WTDBOPOSTGRES_LIB})
2319
ENDIF(ENABLE_POSTGRES AND POSTGRES_FOUND)
2420
ELSE(BOOST_WT_FOUND)
2521
MESSAGE(STATUS "** Not building te-benchmark example: requires boost headers.")

wt_config.xml.in

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@
308308
fraction (e.g. less than 5%) will be plain HTML
309309
sessions. This ratio is only enforced when more than 20 sessions
310310
have been created.
311+
312+
The default is 1 (= 100%), which means that 100% of all sessions
313+
may be plain HTML sessions, effectively disabling this feature. If
314+
you set it to 0.5 for example, that means that 50% of all sessions
315+
may be plain HTML sessions.
311316
-->
312317
<plain-ajax-sessions-ratio-limit>1</plain-ajax-sessions-ratio-limit>
313318

@@ -459,13 +464,20 @@
459464
Each <user-agent> is a regular expression.
460465
-->
461466
<user-agents type="bot">
462-
<user-agent>.*Googlebot.*</user-agent>
463-
<user-agent>.*msnbot.*</user-agent>
464-
<user-agent>.*Slurp.*</user-agent>
465-
<user-agent>.*Crawler.*</user-agent>
466-
<user-agent>.*Bot.*</user-agent>
467-
<user-agent>.*ia_archiver.*</user-agent>
468-
<user-agent>.*Twiceler.*</user-agent>
467+
<user-agent>.*Googlebot.*</user-agent>
468+
<user-agent>.*msnbot.*</user-agent>
469+
<user-agent>.*Slurp.*</user-agent>
470+
<user-agent>.*Crawler.*</user-agent>
471+
<user-agent>.*Bot.*</user-agent>
472+
<user-agent>.*ia_archiver.*</user-agent>
473+
<user-agent>.*Twiceler.*</user-agent>
474+
<user-agent>.*Yandex.*</user-agent>
475+
<user-agent>.*Nutch.*</user-agent>
476+
<user-agent>.*MJ12bot.*</user-agent>
477+
<user-agent>.*Baiduspider.*</user-agent>
478+
<user-agent>.*Ezooms.*</user-agent>
479+
<user-agent>.*Sogou web spider.*</user-agent>
480+
<user-agent>.*AhrefsBot.*</user-agent>
469481
</user-agents>
470482

471483
<!-- Configures different rendering engines for certain browsers.

0 commit comments

Comments
 (0)