Fix formatting errors
Fixed the formatting errors introduced by Astyle. Changed the comment syntax to use a more Astyle-friendly one.
This commit is contained in:
parent
89d1f81e37
commit
41938a205f
@ -1157,8 +1157,8 @@ void dcb_final_close(DCB* dcb)
|
||||
|
||||
if (dcb->dcb_role == DCB_ROLE_BACKEND_HANDLER && // Backend DCB
|
||||
dcb->state == DCB_STATE_POLLING && // Being polled
|
||||
dcb->persistentstart == 0 && // Not already in (> 0) or being evicted from (-1)
|
||||
// the persistent pool.
|
||||
dcb->persistentstart == 0 && /** Not already in (> 0) or being evicted from (-1)
|
||||
* the persistent pool. */
|
||||
dcb->server) // And has a server
|
||||
{
|
||||
/* May be a candidate for persistence, so save user name */
|
||||
|
16
server/modules/filter/cache/test/testrules.cc
vendored
16
server/modules/filter/cache/test/testrules.cc
vendored
@ -66,14 +66,14 @@ struct user_test_case
|
||||
|
||||
const struct user_test_case user_test_cases[] =
|
||||
{
|
||||
USER_TEST_CASE( =, bob, CACHE_OP_LIKE, bob@.*),
|
||||
USER_TEST_CASE( =, 'bob', CACHE_OP_LIKE, bob@.*),
|
||||
USER_TEST_CASE( =, bob@ %, CACHE_OP_LIKE, bob@.*),
|
||||
USER_TEST_CASE( =, 'bob'@'%.52', CACHE_OP_LIKE, bob@.*\\.52),
|
||||
USER_TEST_CASE( =, bob@127.0.0.1, CACHE_OP_EQ, bob@127.0.0.1),
|
||||
USER_TEST_CASE( =, b*b@127.0.0.1, CACHE_OP_EQ, b*b@127.0.0.1),
|
||||
USER_TEST_CASE( =, b*b@ % .0.0.1, CACHE_OP_LIKE, b\\*b@.*\\.0\\.0\\.1),
|
||||
USER_TEST_CASE( =, b*b@ % .0. % .1, CACHE_OP_LIKE, b\\*b@.*\\.0\\..*\\.1),
|
||||
USER_TEST_CASE(=, bob, CACHE_OP_LIKE, bob@.*),
|
||||
USER_TEST_CASE(=, 'bob', CACHE_OP_LIKE, bob@.*),
|
||||
USER_TEST_CASE(=, bob@%, CACHE_OP_LIKE, bob@.*),
|
||||
USER_TEST_CASE(=, 'bob'@'%.52', CACHE_OP_LIKE, bob@.*\\.52),
|
||||
USER_TEST_CASE(=, bob@127.0.0.1, CACHE_OP_EQ, bob@127.0.0.1),
|
||||
USER_TEST_CASE(=, b*b@127.0.0.1, CACHE_OP_EQ, b*b@127.0.0.1),
|
||||
USER_TEST_CASE(=, b*b@%.0.0.1, CACHE_OP_LIKE, b\\*b@.*\\.0\\.0\\.1),
|
||||
USER_TEST_CASE(=, b*b@%.0.%.1, CACHE_OP_LIKE, b\\*b@.*\\.0\\..*\\.1),
|
||||
};
|
||||
|
||||
const size_t n_user_test_cases = sizeof(user_test_cases) / sizeof(user_test_cases[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user