Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
d14de83e
Commit
d14de83e
authored
Sep 10, 2020
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql: make sure any configured session variable is not silently capped
parent
edc63c0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
neo/storage/database/mysqldb.py
neo/storage/database/mysqldb.py
+1
-1
No files found.
neo/storage/database/mysqldb.py
View file @
d14de83e
...
@@ -154,8 +154,8 @@ class MySQLDatabaseManager(DatabaseManager):
...
@@ -154,8 +154,8 @@ class MySQLDatabaseManager(DatabaseManager):
self
.
_config
=
{}
self
.
_config
=
{}
conn
=
self
.
conn
conn
=
self
.
conn
conn
.
autocommit
(
False
)
conn
.
autocommit
(
False
)
conn
.
query
(
"SET SESSION group_concat_max_len = %u"
%
(
2
**
32
-
1
))
conn
.
set_sql_mode
(
"TRADITIONAL,NO_ENGINE_SUBSTITUTION"
)
conn
.
set_sql_mode
(
"TRADITIONAL,NO_ENGINE_SUBSTITUTION"
)
conn
.
query
(
"SET SESSION group_concat_max_len = %u"
%
(
2
**
32
-
1
))
if
self
.
_engine
==
'RocksDB'
:
if
self
.
_engine
==
'RocksDB'
:
# Maximum value for _deleteRange.
# Maximum value for _deleteRange.
conn
.
query
(
"SET SESSION rocksdb_max_row_locks = %u"
%
2
**
30
)
conn
.
query
(
"SET SESSION rocksdb_max_row_locks = %u"
%
2
**
30
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment