Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
94962929
Commit
94962929
authored
8 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Do it in storage function
parent
64a2acb1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/replication/resource.py
+1
-1
1 addition, 1 deletion
synapse/replication/resource.py
synapse/storage/_base.py
+3
-0
3 additions, 0 deletions
synapse/storage/_base.py
with
4 additions
and
1 deletion
synapse/replication/resource.py
+
1
−
1
View file @
94962929
...
...
@@ -390,7 +390,7 @@ class ReplicationResource(Resource):
caches
=
request_streams
.
get
(
"
caches
"
)
if
caches
is
not
None
and
current_position
!=
caches
:
if
caches
is
not
None
:
updated_caches
=
yield
self
.
store
.
get_all_updated_caches
(
caches
,
current_position
,
limit
)
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/_base.py
+
3
−
0
View file @
94962929
...
...
@@ -894,6 +894,9 @@ class SQLBaseStore(object):
)
def
get_all_updated_caches
(
self
,
last_id
,
current_id
,
limit
):
if
last_id
==
current_id
:
return
defer
.
succeed
([])
def
get_all_updated_caches_txn
(
txn
):
# We purposefully don't bound by the current token, as we want to
# send across cache invalidations as quickly as possible. Cache
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment